# README
log
Simple log support stdout, file, syslog
Examples
package main
import (
"github.com/mycaosf/log"
)
func main() {
//log, err := log.New(log.LogTypeSyslog, log.LogLevelDebug, "simple")
log, err := log.New(log.LogTypeStdoutColor, log.LogLevelDebug, "simple")
if err == nil {
defer log.Close()
log.Debugf("debug message: %d", 1)
log.Infof("info message: %d", 1)
log.Errorf("error message: %d", 1)
log.Fatalf("fatalf message: %d", 1)
}
}
# Functions
param: - LogTypeNull, LogTypeStdout, LogTypeStdoutColor: ignore - LogTypeSyslog: tag - LogTypeFile: fileName.
No description provided by the author
age may be 0.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
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
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
# Interfaces
No description provided by the author