userver: userver/logging/logger.hpp File Reference
Loading...
Searching...
No Matches
logger.hpp File Reference

Detailed Description

Logger definitions and helpers.

Definition in file logger.hpp.

Go to the source code of this file.

#include <memory>
#include <string>
#include <userver/logging/format.hpp>
#include <userver/logging/fwd.hpp>
#include <userver/logging/level.hpp>
+ Include dependency graph for logger.hpp:
+ This graph shows which files directly or indirectly include this file:

Namespaces

namespace  logging
 Logging macro and utilities.
 

Functions

LoggerPtr logging::MakeStderrLogger (const std::string &name, Format format, Level level=Level::kInfo)
 Creates synchronous stderr logger with default tskv pattern.
 
LoggerPtr logging::MakeStdoutLogger (const std::string &name, Format format, Level level=Level::kInfo)
 Creates synchronous stdout logger with default tskv pattern.
 
LoggerPtr logging::MakeFileLogger (const std::string &name, const std::string &path, Format format, Level level=Level::kInfo)
 Creates synchronous file logger with default tskv pattern.