Skip to content

hyoyoung/nlog

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nlog

It forked from golang/glog. Also added a quick and dirty modification to log a file.

golang/glog was for logging files by each severity levels. This nlog is going make a only one file to log.

Usage

import (
  "flag"

  "github.com/hyoyoung/nlog"
)

func main() {
  flag.Parse()

  nlog.Info("info log message")

  nlog.Error("error log message")
}
$ ./your_program -log_dir=./log

Flags List

Flags default Description
log_dir logging directory path
logtostderr false log to standard error instead of files
alsologtostderr false log to standard error as well as files
v log level for V logs
stderrthreshold logs at or above this threshold go to stderr
vmodule comma-separated list of pattern=N settings for file-filtered logging
log_backtrace_at when logging hits line file:N, emit a stack trace
singlefile true log to a single log file

About

Leveled execution logs for Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%