mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-25 22:44:05 +00:00
6cd8133035
Summary: This should fix an import issue detected in meta internal tests. Pull Request resolved: https://github.com/facebook/rocksdb/pull/10604 Test Plan: Unit Tests. Reviewed By: hx235 Differential Revision: D39120414 Pulled By: gitbw95 fbshipit-source-id: dbd016d7f47b9f54aab5ea61e8d3cd79734f46af
32 lines
822 B
C++
32 lines
822 B
C++
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
//
|
|
// This source code is licensed under both the GPLv2 (found in the
|
|
// COPYING file in the root directory) and Apache 2.0 License
|
|
// (found in the LICENSE.Apache file in the root directory).
|
|
|
|
#pragma once
|
|
|
|
#include <stdarg.h>
|
|
#include <stdio.h>
|
|
|
|
#include "rocksdb/env.h"
|
|
|
|
namespace ROCKSDB_NAMESPACE {
|
|
|
|
// Prints logs to stderr for faster debugging
|
|
class StderrLogger : public Logger {
|
|
public:
|
|
explicit StderrLogger(const InfoLogLevel log_level = InfoLogLevel::INFO_LEVEL)
|
|
: Logger(log_level) {}
|
|
|
|
~StderrLogger() override;
|
|
|
|
// Brings overloaded Logv()s into scope so they're not hidden when we override
|
|
// a subset of them.
|
|
using Logger::Logv;
|
|
|
|
virtual void Logv(const char* format, va_list ap) override;
|
|
};
|
|
|
|
} // namespace ROCKSDB_NAMESPACE
|