Skip to content

Commit

Permalink
Merge pull request #515 from segfaulthunter/doc
Browse files Browse the repository at this point in the history
Explain log levels.
  • Loading branch information
sergiud authored Mar 25, 2020
2 parents 940335d + 74076be commit 7da49d4
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/glog/log_severity.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,21 @@
#ifndef BASE_LOG_SEVERITY_H__
#define BASE_LOG_SEVERITY_H__

// The recommended semantics of the log levels are as follows:
//
// INFO:
// Use for state changes or other major events, or to aid debugging.
// WARNING:
// Use for undesired but relatively expected events, which may indicate a
// problem
// ERROR:
// Use for undesired and unexpected events that the program can recover from.
// All ERRORs should be actionable - it should be appropriate to file a bug
// whenever an ERROR occurs in production.
// FATAL:
// Use for undesired and unexpected events that the program cannot recover
// from.

// Annoying stuff for windows -- makes sure clients can import these functions
#ifndef GOOGLE_GLOG_DLL_DECL
# if defined(_WIN32) && !defined(__CYGWIN__)
Expand Down

0 comments on commit 7da49d4

Please sign in to comment.