-
Notifications
You must be signed in to change notification settings - Fork 0
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
3633bd9
commit 997facc
Showing
1 changed file
with
9 additions
and
1 deletion.
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,8 +1,16 @@ | ||
package golog | ||
|
||
// A struct to store all configuration options used by golog and sink writers. | ||
// The configuration determines the LogLevel and message template of the sink and or globally. | ||
type configuration struct { | ||
level LogLevel | ||
// The golog's configuration logging level. | ||
// A sink with a specified log level will override the log level configured globally. | ||
level LogLevel | ||
// A text formatting template. | ||
// This is TBD but you will be able to specify some sort of template to dectate how messages are rendered. | ||
// Something like: [HH:MM:SS LVL] MESSAGE \n ERROR | ||
format formatter | ||
} | ||
|
||
// The type used to define a message template. | ||
type formatter string |