The logging system's main Logger class. More...
#include <Balau/Application/Impl/BindingKey.hpp>
#include <Balau/Logging/LoggingLevel.hpp>
#include <Balau/Logging/Impl/LoggerAllocator.hpp>
#include <Balau/Logging/Impl/LoggerForwardDeclarations.hpp>
#include <Balau/Type/SourceCodeLocation.hpp>
#include <atomic>
#include <functional>
Go to the source code of this file.
Classes | |
class | Logger |
The main logger class. More... | |
class | LoggingStream |
Base class of logging stream plugins. More... | |
Namespaces | |
Balau | |
The root Balau namespace. | |
Macros | |
#define | BalauLogDebug(LOGGER, ...) LOGGER.debug(SourceCodeLocation(__FILE__, __LINE__), __VA_ARGS__) |
Log a debug message with the source code location of the logging statement. More... | |
#define | BalauLogError(LOGGER, ...) LOGGER.error(SourceCodeLocation(__FILE__, __LINE__), __VA_ARGS__) |
Log an error message with the source code location of the logging statement. More... | |
#define | BalauLogInfo(LOGGER, ...) LOGGER.info(SourceCodeLocation(__FILE__, __LINE__), __VA_ARGS__) |
Log an info message with the source code location of the logging statement. More... | |
#define | BalauLogTrace(LOGGER, ...) LOGGER.trace(SourceCodeLocation(__FILE__, __LINE__), __VA_ARGS__) |
Log a trace message with the source code location of the logging statement. More... | |
#define | BalauLogWarn(LOGGER, ...) LOGGER.warn(SourceCodeLocation(__FILE__, __LINE__), __VA_ARGS__) |
Log a warn message with the source code location of the logging statement. More... | |
Typedefs | |
using | LoggingStreamFactory = LoggingStream *(*)(std::string_view uri) |
The logging stream factory function type. More... | |
The logging system's main Logger class.
Always include this file last when there is a series of Balau include files, in order to ensure that all toString functions are included before the logger.
#define BalauLogDebug | ( | LOGGER, | |
... | |||
) | LOGGER.debug(SourceCodeLocation(__FILE__, __LINE__), __VA_ARGS__) |
Log a debug message with the source code location of the logging statement.
#define BalauLogError | ( | LOGGER, | |
... | |||
) | LOGGER.error(SourceCodeLocation(__FILE__, __LINE__), __VA_ARGS__) |
Log an error message with the source code location of the logging statement.
#define BalauLogInfo | ( | LOGGER, | |
... | |||
) | LOGGER.info(SourceCodeLocation(__FILE__, __LINE__), __VA_ARGS__) |
Log an info message with the source code location of the logging statement.
#define BalauLogTrace | ( | LOGGER, | |
... | |||
) | LOGGER.trace(SourceCodeLocation(__FILE__, __LINE__), __VA_ARGS__) |
Log a trace message with the source code location of the logging statement.
#define BalauLogWarn | ( | LOGGER, | |
... | |||
) | LOGGER.warn(SourceCodeLocation(__FILE__, __LINE__), __VA_ARGS__) |
Log a warn message with the source code location of the logging statement.