Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
LC_soapi
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a44a403c
authored
Jan 06, 2020
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
接入龙哥的日志æ包
parent
ddce1490
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
pkg/logger/log.go
pkg/logger/log_report.go
pkg/logger/log.go
0 → 100644
View file @
a44a403c
package
logger
import
(
"LC_soapi/pkg/setting"
"github.com/ichunt2019/logger"
"log"
)
func
Setup
()
{
logSetting
:=
setting
.
LogSetting
logConfig
:=
make
(
map
[
string
]
string
)
logConfig
[
"log_path"
]
=
logSetting
.
LogPath
logConfig
[
"log_chan_size"
]
=
logSetting
.
LogChanSize
err
:=
logger
.
InitLogger
(
"file"
,
logConfig
)
if
err
!=
nil
{
log
.
Fatalf
(
"logger setup fail , reason is %v"
,
err
)
}
logger
.
Init
()
}
\ No newline at end of file
pkg/logger/log_report.go
0 → 100644
View file @
a44a403c
package
logger
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment