Couchbase C++ SDK 1.1.0 (rev. effbd6e)
Loading...
Searching...
No Matches
logger.hxx File Reference
#include <functional>
#include <string>
#include <string_view>
Include dependency graph for logger.hxx:

Go to the source code of this file.

Classes

struct  log_location
 

Namespaces

namespace  couchbase
 Represents a single item from the result of scan()
 
namespace  couchbase::logger
 

Typedefs

using log_callback = std::function<void(std::string_view, log_level, log_location)>
 

Enumerations

enum class  log_level {
  trace , debug , info , warn ,
  error , critical , off
}
 

Functions

void register_log_callback (const log_callback &callback)
 
void unregister_log_callback ()
 
void set_level (log_level level)
 
void initialize_console_logger ()
 
void initialize_file_logger (std::string_view filename)
 
void initialize_protocol_logger (std::string_view filename)
 
void flush_all_loggers ()
 
void shutdown_all_loggers ()