23 #ifndef __ccxx_LogFormat_hxx 24 #define __ccxx_LogFormat_hxx 36 #include <sys/utsname.h> 174 enum TokenCode { TOK_INVALID = -1, TOK_LITERAL = 0, TOK_TIME_LONG,
175 TOK_TIME_SHORT, TOK_DATE_LONG, TOK_DATE_SHORT, TOK_FILE,
176 TOK_LINE, TOK_MESSAGE, TOK_THREAD, TOK_PID, TOK_OSNAME,
177 TOK_ARCH, TOK_OSVER, TOK_USERNAME, TOK_HOST, TOK_LEVEL,
178 TOK_PERCENT, TOK_BOLD, TOK_UNDERLINE, TOK_INVERSE,
179 TOK_PLAIN, TOK_DEFAULT, TOK_BLACK, TOK_RED, TOK_GREEN,
180 TOK_YELLOW, TOK_BLUE, TOK_MAGENTA, TOK_CYAN, TOK_WHITE,
181 TOK_STYLESOFF, TOK_AUTOCOLOR, TOK_NEWLINE, TOK_APPNAME,
184 TokenCode lookupToken(
char c);
189 Token(TokenCode token = TOK_LITERAL,
const char* text = NULL,
int len = 0);
212 void setFormat(
const String& format);
227 int line,
const char* message, va_list args);
230 void setShortDateFormat(
const String& format);
233 void setLongDateFormat(
const String& format);
236 void setShortTimeFormat(
const String& format);
239 void setLongTimeFormat(
const String& format);
243 static size_t _eolLen;
255 #endif // __ccxx_LogFormat_hxx
Informational messages.
Definition: LogFormat.h++:48
Error messages.
Definition: LogFormat.h++:52
LogLevel
Logging levels.
Definition: LogFormat.h++:44
Debugging messages.
Definition: LogFormat.h++:46
#define COMMONCPP_API
Definition: Common.h++:126
A flexible, reference counted, copy-on-write, thread-safe, nullable string.
Definition: String.h++:50
#define CCXX_COPY_DECLS(CLASS)
Inlines declarations of a copy constructor and assignment operator for the class CLASS.
Definition: Common.h++:295
Definition: AllocationMap.c++:25
Warning messages.
Definition: LogFormat.h++:50