Merge pull request #8 from michaelbeaumont/patch-1
Allow the `Line` formatter to be overridden
This commit is contained in:
commit
dc4e3aa5d3
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue