Skip to content
Permalink
v0.9.1
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
19 lines (15 sloc) 601 Bytes
package ln
import "fmt"
func withLevel(level, format string, args ...interface{}) Fer {
return F{"msg": fmt.Sprintf(format, args...), "level": level}
}
// Info adds an informational connotation to this log line. This is the
// "default" state for things that can be ignored.
func Info(format string, args ...interface{}) Fer {
return withLevel("info", format, args...)
}
// Debug adds a debugging connotation to this log line. This may be ignored
// or aggressively sampled in order to save ram.
func Debug(format string, args ...interface{}) Fer {
return withLevel("debug", format, args...)
}