Skip to content

Commit

Permalink
commented configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
ewilliams0305 committed Nov 6, 2023
1 parent 3633bd9 commit 997facc
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion logger/config.go
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

0 comments on commit 997facc

Please sign in to comment.