-
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
skycandy
committed
Aug 30, 2021
1 parent
5a4ac05
commit 4a2cf49
Showing
7 changed files
with
158 additions
and
93 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
logs/* | ||
*.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
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,25 @@ | ||
|
||
version : 1.0 | ||
debugFlag: false | ||
console: true | ||
logs: | ||
logname: test | ||
logpath: logs | ||
err_path: logs/err | ||
|
||
# DebugLevel Level = iota - 1 | ||
# // InfoLevel is the default logging priority. | ||
# InfoLevel | ||
# // WarnLevel logs are more important than Info, but don't need individual | ||
# // human review. | ||
# WarnLevel | ||
# // ErrorLevel logs are high-priority. If an application is running smoothly, | ||
# // it shouldn't generate any error-level logs. | ||
# ErrorLevel | ||
# // DPanicLevel logs are particularly important errors. In development the | ||
# // logger panics after writing the message. | ||
# DPanicLevel | ||
# // PanicLevel logs a message, then panics. | ||
# PanicLevel | ||
# // FatalLevel logs a message, then calls os.Exit(1). | ||
# FatalLevel |
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,16 @@ | ||
package test | ||
|
||
import ( | ||
"fmt" | ||
"testing" | ||
|
||
"github.com/skycandyzhe/go-com/config" | ||
"github.com/skycandyzhe/go-com/logger" | ||
) | ||
|
||
func TestParseRule(t *testing.T) { | ||
fmt.Println(config.Conf) | ||
logger.Logger.Info("info test") | ||
logger.Logger.Debug("debug test") | ||
logger.Logger.Error("debug test") | ||
} |
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
Oops, something went wrong.