Cogs.Foundation
|
Log implementation class. More...
#include <LogManager.h>
Public Member Functions | |
template<size_t LEN> | |
constexpr | Log (const char(&n)[LEN]) noexcept |
void | logFileLine (const char *file, const int line, const Category category, uint32_t errorNumber, _Printf_format_string_ const char *fmt,...) const VALIDATE_ARGS(6) |
Log a formatted message with file/line information. | |
void | log (const Category category, uint32_t errorNumber, _Printf_format_string_ const char *fmt,...) const VALIDATE_ARGS(4) |
Log a formatted message. | |
constexpr const char * | getName () const noexcept |
Protected Member Functions | |
Log ()=default | |
Default constructor available to dervied types. | |
Protected Attributes | |
const char * | literalName = nullptr |
Log implementation class.
The log provides an easy way to share a logging source in a class, namespace or similar.
|
inlineexplicitconstexprnoexcept |
Creates a new instance of the Log class.
n | - Name of the log used to identify output produced through this instance. |
|
protecteddefault |
Default constructor available to dervied types.
|
inlineconstexprnoexcept |
|
inline |
Log a formatted message.
References getName(), and Cogs::Logging::logArgs().
|
inline |
Log a formatted message with file/line information.
References getName(), and Cogs::Logging::logFileLineArgs().
|
protected |
Used for the case where a string literal was passed in. OK as string literals are valid for program duration.