Skip to content

Commit babca1a

Browse files
author
fuqiang
committed
fix: modify log key
1 parent b8eaa81 commit babca1a

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

README.md

+14-10
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,33 @@
1-
2-
## Taurus [![GoDoc](https://pkg.go.dev/badge/github.com/eric-tech01/taurus)](https://pkg.go.dev/github.com/eric-tech01/[email protected])
3-
1+
## Taurus [![GoDoc](https://pkg.go.dev/badge/github.com/eric-tech01/taurus)](https://pkg.go.dev/github.com/eric-tech01/[email protected])
42

53
_(_____)_
64
|__.___.__|
7-
| |
8-
| |
9-
|_|
5+
| |
6+
| |
7+
|_|
108

119
## Introduction
10+
1211
Simplify and Accelerate Your Development Process.
1312
Taurus is designed to provide developers with a simplified and efficient solution for building HTTP services and leveraging various utility libraries. With our framework, you can embark on rapid development journeys, ensuring both simplicity and efficiency throughout the entire process.
1413

15-
1614
## Documentation
15+
1716
To be updated...
1817

1918
## Requirements
19+
2020
- Go version >= 1.18
2121

2222
## Quick Start
23-
1. Config file:
23+
24+
1. Config file:
25+
2426
```
25-
[taurus.server.http]
27+
[taurus_server_http]
2628
Host = "0.0.0.0"
2729
Port = 8090
28-
[taurus.log.default]
30+
[taurus_log_default]
2931
Level = "debug"
3032
FileName = "./taurus.log"
3133
MaxBackups = 1
@@ -35,6 +37,7 @@ To be updated...
3537
```
3638

3739
2. Example code:
40+
3841
```
3942
package main
4043
@@ -111,6 +114,7 @@ func (eng *Engine) printLog() error {
111114
```
112115

113116
3. Run code
117+
114118
```
115119
go run ./main.go --config=config.toml
116120
```

init.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func initLogger() {
3131
conf.OnLoaded(func(c *conf.Configuration) {
3232
log.Println("load logger start")
3333
defer log.Println("load logger finish")
34-
m := conf.GetStringMap("taurus.log.default")
34+
m := conf.GetStringMap("taurus_log_default")
3535
if len(m) == 0 {
3636
log.Printf("has no log config, ignore load")
3737
return

0 commit comments

Comments
 (0)