-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
02735ee
commit ead1fe5
Showing
2 changed files
with
18 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,21 @@ | ||
// Package log provides a structured logger. | ||
// | ||
// Services produce logs to be consumed later, either by humans or machines. | ||
// Humans might be interested in debugging errors, or tracing specific requests. | ||
// Machines might be interested in counting interesting events, or aggregating | ||
// information for offline processing. In both cases, it's important that the | ||
// log messages be structured and actionable. Package log is designed to | ||
// encourage both of these best practices. | ||
// Applications may want to produce logs to be consumed later, either by | ||
// humans or machines. Humans might be interested in debugging errors, or | ||
// tracing specific requests. Machines might be interested in counting | ||
// interesting events, or aggregating information for offline processing. In | ||
// both cases, it's important that the log messages be structured and | ||
// actionable. Package log is designed to encourage both of these best | ||
// practices. | ||
// | ||
// Basic Usage | ||
// | ||
// The fundamental interface is Logger. Loggers create log events from | ||
// key/value data. | ||
// | ||
// Concurrent Safety | ||
// | ||
// Applications with multiple goroutines want each log event written to the | ||
// same logger to remain separate from other log events. Package log provides | ||
// multiple solutions for concurrent safe logging. | ||
package log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters