66 case Logging::LogLevel::LOG_ALWAYS:
83 std::cerr << logData.
msg <<
" [";
87 std::cerr <<
"'" << logData.
logName <<
"' ";
90 if (!logData.
method.empty())
92 std::cerr << logData.
method <<
"()";
95 if (!logData.
file.empty())
97 std::cerr <<
" " << logData.
file;
101 std::cerr <<
"(" << logData.
line <<
")";
105 std::cerr <<
"]" << std::endl;
std::string logName
The frame number.
std::string file
The name of the Log instance (could be empty)
int line
The calling method of the message.
static const std::string GetLogLevelString(LogLevel logLevel)
Gets log level string.
void TR_UTIL_EXPORT TextColor(TXT_COLOR TextColor)
Changes Text color in the console window....
std::string method
The source file of the message.
virtual ~LogWriterConsole()
Destructor.
std::string ToString() const
The no parameter version of ToString uses the internal TimeFormat, see the TimeFormat enumeration abo...
virtual void LogMessage(const LogData &logData)
Logs a message.
static const TimeFormat CLOCK_TIME_24_HOUR_FORMAT
CLOCK_TIME_24_HOUR_FORMAT: 13:22:50.
LogWriterConsole()
Default constructor.
unsigned frameNumber
Time of message.
std::string msg
The line number of the source code of the message.
trUtil::DateTime time
Log level.
trUtil::Logging::LogLevel logLevel