Categorygithub.com/crgao/log
modulepackage
0.0.0-20200909062207-392693e88ded
Repository: https://github.com/crgao/log.git
Documentation: pkg.go.dev

# README

log

How to use

  1. use Default
  log.Default() // you can see the default setting at config.go
  log.Info("info")
  1. use file path
  log.InitByConfigFile("./log.conf") // you can see the example at example 
  log.Info("info")
  1. use json
  log.InitByConfigJson(string(log.GetDefaultLogConfig()))
  log.Info("info")

benchstat

system: windows 7 x64 sp1

cpu(s): 8

model name: Intel(R) Core(TM) i7-3610QM CPU @ 2.30GHz

memery: 8G

TextPositiveWithConsole

testopsns/opbytes/opallocs/op
BenchmarkLogTextPositive3000046702 ns/op4016 B/op78 allocs/op
BenchmarkLogTextPositive-25000024721 ns/op4016 B/op78 allocs/op
BenchmarkLogTextPositive-410000015950 ns/op4017 B/op78 allocs/op
BenchmarkLogTextPositive-820000011295 ns/op4019 B/op78 allocs/op

TextPositiveWithoutConsole

testopsns/opbytes/opallocs/op
BenchmarkLogTextPositive10000018831 ns/op2480 B/op48 allocs/op
BenchmarkLogTextPositive-220000010010 ns/op2480 B/op48 allocs/op
BenchmarkLogTextPositive-42000006840 ns/op2481 B/op48 allocs/op
BenchmarkLogTextPositive-82000007905 ns/op2482 B/op48 allocs/op

# Packages

No description provided by the author

# Functions

log critical level.
log critical format.
log debug level.
log debug format.
No description provided by the author
log error level.
log error format.
log critical level.
log critical format.
No description provided by the author
log info level.
log info format.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
log notice level.
log notice format.
log warning level.
log warning format.

# Structs

No description provided by the author