Source

log /

Filename Size Date modified Message
13 B
801 B
3.1 KB
179 B
1. This pkg provides a fast/small log framework that you can modify at run time.
2. You can write to:
   a. Socket
   b. File (logs do not rotate yet)
   c. os.Stdout
3. Set unset flags via log.ToggleFlag(log.DEBUG | log.ERROR) etc..
4. Check if flag is set via log.IsSetFlag(log.DEBUG)

== Configuration file must be this exact file. ==
== If no config file exists DEFAULTS to STDOUT ==
const ConfPath = "/usr/local/etc/mdoglog/mdoglog.conf"

usage:

==================================================

package main

import "bitbucket.org/agallego/log"

func main() {
      log.D("this is a debug outout")
}

===================================================


Sample Configuration:


{
    "net": [],
    "file_path": "/var/log/yourapp/yourapp.log",
    "stdout": false,
    "starting_flags": 1
}