Friday, September 8, 2023

Google Logging(glog) Library, output Format

Google Logging (glog) is a C++14 library that implements application-level logging. The library provides logging APIs based on C++-style streams and various helper macros

Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line msg

or 

[IWEF]yyyymmdd hh:mm:ss.uuuuuu threadid file:line msg


IWEF ==> INFO, WARNING, ERROR AND FATAL

yyyymmdd ==> YEAR, MONTH AND DATE

hh:mm:ss.uuuuuu ==> HOURS, MINUTES, SECONDS AND MICROSECONDS

threadid ==> Process thread ID

file:line ==> File name and line number

msg ==> Actual log message, multiline


Official link: https://github.com/google/glog


***

No comments:

Post a Comment