// LogDecorations keeps resolved values for decorators, as well as the // printing code to print them. The values are resolved at the log site (in the // constructor of LogDecorations); the printing happens when the log message is // printed. That may happen delayed, and the object may be stored for some time, // in the context of asynchronous logging. Therefore size of this object matters. class LogDecorations {
const jlong _millis; // for "time", "utctime", "timemillis" const jlong _nanos; // for "timenanos" constdouble _elapsed_seconds; // for "uptime", "uptimemillis", "uptimenanos" const intx _tid; // for "tid"
LogLevelType _level; // for "level" (needs to be nonconst) const LogTagSet& _tagset; // for "tags" // In debug mode we keep the decorators around for sanity checking when printing
DEBUG_ONLY(const LogDecorators _decorators;)
staticconstchar* volatile _host_name; staticconstchar* host_name(); staticconstint _pid; // for "pid"
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.