Merge pull request #8 from michaelbeaumont/patch-1
Allow the `Line` formatter to be overriddenmaster
commit
dc4e3aa5d3
|
@ -102,7 +102,7 @@ func LineBytes(prefix, format string, a ...interface{}) []byte {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Line will format a log line, and return a string
|
// Line will format a log line, and return a string
|
||||||
func Line(prefix, format string, a ...interface{}) string {
|
var Line = func(prefix, format string, a ...interface{}) string {
|
||||||
if !strings.Contains(format, "\n") {
|
if !strings.Contains(format, "\n") {
|
||||||
format = fmt.Sprintf("%s%s", format, "\n")
|
format = fmt.Sprintf("%s%s", format, "\n")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue