Lines Matching refs:logging
28 // process from the main application. When the logging system needs to display
38 // If DebugMessage.exe is not found, the logging code will use a normal
45 // Make a bunch of macros for logging. The way to log things is to stream
50 // You can also do conditional logging:
62 // There are also "debug mode" logging macros like the ones above:
68 // All "debug mode" logging is compiled away to nothing for non-debug mode
79 // There are "verbose level" logging macros. They look like
85 // The verbose logging can also be turned on module-by-module. For instance,
100 // E.g., "*/foo/bar/*=2" would change the logging level for all code
106 // // do some logging preparation and logging
136 // Very important: logging a message at the FATAL severity level causes
146 namespace logging {
148 // Where to record logging output? A flat file and/or system debug log via
158 // If logging is being done from multiple threads or there can be more than
159 // one process doing the logging, the file should be locked during writes to
184 // to compile logging.cc with NDEBUG but includes logging.h without defining it,
201 // Sets the log file name and other global logging state. Calling this function
225 // the min log level to negative values enables verbose logging.
247 // If this function is not called, logging defaults to writing the timestamp
302 logging::ClassName(__FILE__, __LINE__, logging::LOG_INFO , ##__VA_ARGS__)
304 logging::ClassName(__FILE__, __LINE__, logging::LOG_WARNING , ##__VA_ARGS__)
306 logging::ClassName(__FILE__, __LINE__, logging::LOG_ERROR , ##__VA_ARGS__)
308 logging::ClassName(__FILE__, __LINE__, \
309 logging::LOG_ERROR_REPORT , ##__VA_ARGS__)
311 logging::ClassName(__FILE__, __LINE__, logging::LOG_FATAL , ##__VA_ARGS__)
313 logging::ClassName(__FILE__, __LINE__, logging::LOG_DFATAL , ##__VA_ARGS__)
345 ((::logging::LOG_ ## severity) >= ::logging::GetMinLogLevel())
349 // that using the v-logging functions in conjunction with --vmodule
352 ((verboselevel) <= ::logging::GetVlogLevel(__FILE__))
357 !(condition) ? (void) 0 : ::logging::LogMessageVoidify() & (stream)
378 logging::LogMessage(__FILE__, __LINE__, -verbose_level).stream()
389 logging::Win32ErrorLogMessage(__FILE__, __LINE__, -verbose_level, \
390 ::logging::GetLastSystemErrorCode()).stream()
393 logging::ErrnoLogMessage(__FILE__, __LINE__, -verbose_level, \
394 ::logging::GetLastSystemErrorCode()).stream()
414 ::logging::GetLastSystemErrorCode()).stream()
419 ::logging::GetLastSystemErrorCode(), module).stream()
423 // PLOG_STREAM is used by PLOG, which is the usual error logging macro
429 ::logging::GetLastSystemErrorCode()).stream()
432 // PLOG_STREAM is used by PLOG, which is the usual error logging macro
435 // TODO(tschmelcher): Should we add OSStatus logging for Mac?
476 // in logging.cc.
496 logging::Check##name##Impl((val1), (val2), \
498 logging::LogMessage(__FILE__, __LINE__, _result).stream()
574 true ? (void) 0 : ::logging::LogMessageVoidify() & LOG_STREAM(FATAL)
630 ((::logging::g_dcheck_state == \
631 ::logging::ENABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS) && \
676 logging::Check##name##Impl((val1), (val2), \
678 logging::LogMessage( \
679 __FILE__, __LINE__, ::logging::LOG_DCHECK, \
792 // when the logging level is not a compile-time constant).
798 // logging macros. This avoids compiler warnings like "value computed
869 // NOTE: Since the log file is opened as necessary by the action of logging
874 // Async signal safe logging mechanism.
877 #define RAW_LOG(level, message) logging::RawLog(logging::LOG_ ## level, message)
882 logging::RawLog(logging::LOG_FATAL, "Check failed: " #condition "\n"); \
885 } // namespace logging
887 // These functions are provided as a convenience for logging, which is where we