Represents a single entry in a log, i.e., one LOG statement or failed CHECK.
Synopsis
Declared in <absl/log/log_entry.h>
class LogEntry final
Description
LogEntry is thread‐compatible.
Type Aliases
Name |
Description |
Type used to represent a thread ID. |
Member Functions
Name |
Description |
|
Deleted; pass |
|
Deleted; instances are not copy‐assignable. |
Returns a serialized protobuf holding the operands streamed into this log message. The message definition is not yet published. |
|
Returns this entry's severity. For |
|
Returns true unless the metadata prefix was suppressed once by |
|
Returns the source file base name where the log message occurred. |
|
Returns the source file name where the log message occurred, taken from |
|
Returns the source line where the log message occurred, taken from |
|
Returns the optional stacktrace, e.g. for |
|
Returns the text‐formatted message without its metadata prefix and without a trailing newline. |
|
Returns the text‐formatted message without its metadata prefix, with a trailing newline. |
|
Returns the text‐formatted message including its metadata prefix, but without a trailing newline. |
|
|
Returns the text‐formatted message including its metadata prefix and trailing newline. |
|
Returns a nul‐terminated C string of the text‐formatted message including its metadata prefix and trailing newline. |
Returns the ID of the thread that wrote this entry. Captured during evaluation of |
|
Returns the time at which this entry was written. Captured during evaluation of |
|
Returns this entry's verbosity, or |
Static Data Members
Name |
Description |
Deprecated alias for |
|
For non‐verbose log entries, |
Friends
Name |
Description |
Writes a human‐readable representation of |
|
|
Created with MrDocs