Permalink
Cannot retrieve contributors at this time
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?
ln/message.go
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
19 lines (15 sloc)
601 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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...) | |
} |