Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
wang
/
go_supplier_task
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
5cf8661e
authored
Mar 12, 2021
by
wang
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
……
parent
9c318fad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
48 deletions
cmd/cron/merge/cron.go
cmd/cron/merge/cron.go
View file @
5cf8661e
...
...
@@ -3,9 +3,7 @@ package main
import
(
"flag"
"fmt"
logger
"github.com/ichunt2019/log"
"go_supplier_task/boot"
syncLog
"go_supplier_task/pkg/logger/sync"
"go_supplier_task/service"
)
...
...
@@ -71,48 +69,3 @@ func main() {
}
func
logTest
()
{
//logger.SyncInsert("abc_d","djflsdfj",logger.LogLevelFatal)
//logger.SyncInsert("abc_d","abc")
//logger.SyncInsert("abc_d","abc123123")
//time.Sleep(time.Second*2)
syncLog
.
SyncInsertLog
(
"sdfsdfsdf"
,
"def"
,
syncLog
.
LogLevelFatal
)
//log.SyncInsert("dfsdf","def")
//log.SyncInsert("的火箭分离事件的发生地发","def")
//test2()
//test2()
//logTest2()
//logTest2()
}
func
logTest2
()
{
syncLog
.
SyncInsertLog
(
"a_b"
,
"def"
,
syncLog
.
LogLevelFatal
)
/*log.SyncInsert("ws_a","豆腐干大范甘迪")
log.SyncInsert("ws_a","手动阀手动阀")
log.SyncInsert("ws_a","手动阀手动阀打发士大夫")*/
//log.SyncInsert("ws_a","dfsdf")
//log.SyncInsert("ws_a","dfsdf")
//log.SyncInsert("ws_a","dfsdf")
}
func
test2
()
{
logConfig
:=
make
(
map
[
string
]
string
)
logConfig
[
"log_path"
]
=
"logs/test1"
logConfig
[
"log_chan_size"
]
=
"1"
logConfig
[
"log_name"
]
=
"xxxxx"
logConfig
[
"open_sync"
]
=
"1"
log
,
_
:=
logger
.
InitLogger
(
"file"
,
logConfig
)
log
.
Init
()
/*for i := 0; i < 500; i++ {
d:=fmt.Sprintf("%d",i)
log.Info(d)
}*/
log
.
Info
(
"dfsdf"
)
log
.
SyncWait
()
}
\ No newline at end of file
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