Exemple #1
0
func (gLog *GoQALog) Add(name string, level uint64, stream io.Writer) {
	if !gLog.ready() {
		return
	}
	if _, ok := gLog.loggers[name]; !ok {
		stream := logStream{level: level, logger: *log.New(stream, "", log.Ldate|log.Ltime|log.Lmicroseconds)}
		stream.Start()
		gLog.loggers[name] = stream
	}
}