// The list of available decorators: // time - Current time and date in ISO-8601 format // uptime - Time since the start of the JVM in seconds and milliseconds (e.g., 6.567s) // timemillis - The same value as generated by System.currentTimeMillis() // uptimemillis - Milliseconds since the JVM started // timenanos - The same value as generated by System.nanoTime() // uptimenanos - Nanoseconds since the JVM started // hostname - The hostname // pid - The process identifier // tid - The thread identifier // level - The level associated with the log message // tags - The tag-set associated with the log message #define DECORATOR_LIST \
DECORATOR(time, t) \
DECORATOR(utctime, utc) \
DECORATOR(uptime, u) \
DECORATOR(timemillis, tm) \
DECORATOR(uptimemillis, um) \
DECORATOR(timenanos, tn) \
DECORATOR(uptimenanos, un) \
DECORATOR(hostname, hn) \
DECORATOR(pid, p) \
DECORATOR(tid, ti) \
DECORATOR(level, l) \
DECORATOR(tags, tg)
// LogDecorators represents a selection of decorators that should be prepended to // each log message for a given output. Decorators are always prepended in the order // declared above. For example, logging with 'uptime, level, tags' decorators results in: // [0,943s][info ][logging] message. class LogDecorators { public:
enum Decorator { #define DECORATOR(name, abbr) name##_decorator,
DECORATOR_LIST #undef DECORATOR
Count,
Invalid
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.