-
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.
Merge branch feature/logs-level-based-suppression to main
- Loading branch information
1 parent
0983efe
commit 0308bdd
Showing
6 changed files
with
92 additions
and
30 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
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package defs | ||
|
||
// | ||
// enumerated level definitions | ||
// | ||
type LOG_LEVEL int | ||
|
||
const ( | ||
LEVEL_DEBUG LOG_LEVEL = iota | ||
LEVEL_INFO | ||
LEVEL_WARNING | ||
LEVEL_ERROR | ||
LEVEL_ALERT | ||
LEVEL_FATAL | ||
) | ||
|
||
// | ||
// level-based tag definitions | ||
// | ||
const ( | ||
TAG_DEBUG = "D" | ||
TAG_INFO = "I" | ||
TAG_WARNING = "W" | ||
TAG_ERROR = "E" | ||
TAG_ALERT = "A" | ||
TAG_FATAL = "F" | ||
) |
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
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
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,6 +1,8 @@ | ||
package log | ||
|
||
import "testing" | ||
import ( | ||
"testing" | ||
) | ||
|
||
func TestPrint(t *testing.T) { | ||
|
||
|
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