bump(github.com/coreos/go-log/log):
This commit is contained in:
@ -1,6 +1,5 @@
|
|||||||
package log
|
package log
|
||||||
|
// Copyright 2013, CoreOS, Inc. All rights reserved.
|
||||||
// Copyright 2013, David Fisher. All rights reserved.
|
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
@ -43,6 +42,7 @@ func (logger *Logger) Logf(priority Priority, format string, v ...interface{}) {
|
|||||||
logger.Log(priority, fmt.Sprintf(format, v...))
|
logger.Log(priority, fmt.Sprintf(format, v...))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (logger *Logger) Emergency(v ...interface{}) {
|
func (logger *Logger) Emergency(v ...interface{}) {
|
||||||
logger.Log(PriEmerg, v...)
|
logger.Log(PriEmerg, v...)
|
||||||
}
|
}
|
||||||
@ -99,6 +99,7 @@ func (logger *Logger) Debugf(format string, v ...interface{}) {
|
|||||||
logger.Log(PriDebug, fmt.Sprintf(format, v...))
|
logger.Log(PriDebug, fmt.Sprintf(format, v...))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func Emergency(v ...interface{}) {
|
func Emergency(v ...interface{}) {
|
||||||
defaultLogger.Log(PriEmerg, v...)
|
defaultLogger.Log(PriEmerg, v...)
|
||||||
}
|
}
|
||||||
@ -157,56 +158,57 @@ func Debugf(format string, v ...interface{}) {
|
|||||||
|
|
||||||
// Standard library log functions
|
// Standard library log functions
|
||||||
|
|
||||||
func (logger *Logger) Fatalln(v ...interface{}) {
|
func (logger *Logger)Fatalln (v ...interface{}) {
|
||||||
logger.Log(PriCrit, v...)
|
logger.Log(PriCrit, v...)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
func (logger *Logger) Fatalf(format string, v ...interface{}) {
|
func (logger *Logger)Fatalf (format string, v ...interface{}) {
|
||||||
logger.Logf(PriCrit, format, v...)
|
logger.Logf(PriCrit, format, v...)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (logger *Logger) Panicln(v ...interface{}) {
|
func (logger *Logger)Panicln (v ...interface{}) {
|
||||||
s := fmt.Sprint(v...)
|
s := fmt.Sprint(v...)
|
||||||
logger.Log(PriErr, s)
|
logger.Log(PriErr, s)
|
||||||
panic(s)
|
panic(s)
|
||||||
}
|
}
|
||||||
func (logger *Logger) Panicf(format string, v ...interface{}) {
|
func (logger *Logger)Panicf (format string, v ...interface{}) {
|
||||||
s := fmt.Sprintf(format, v...)
|
s := fmt.Sprintf(format, v...)
|
||||||
logger.Log(PriErr, s)
|
logger.Log(PriErr, s)
|
||||||
panic(s)
|
panic(s)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (logger *Logger) Println(v ...interface{}) {
|
func (logger *Logger)Println (v ...interface{}) {
|
||||||
logger.Log(PriInfo, v...)
|
logger.Log(PriInfo, v...)
|
||||||
}
|
}
|
||||||
func (logger *Logger) Printf(format string, v ...interface{}) {
|
func (logger *Logger)Printf (format string, v ...interface{}) {
|
||||||
logger.Logf(PriInfo, format, v...)
|
logger.Logf(PriInfo, format, v...)
|
||||||
}
|
}
|
||||||
|
|
||||||
func Fatalln(v ...interface{}) {
|
|
||||||
|
func Fatalln (v ...interface{}) {
|
||||||
defaultLogger.Log(PriCrit, v...)
|
defaultLogger.Log(PriCrit, v...)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
func Fatalf(format string, v ...interface{}) {
|
func Fatalf (format string, v ...interface{}) {
|
||||||
defaultLogger.Logf(PriCrit, format, v...)
|
defaultLogger.Logf(PriCrit, format, v...)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
func Panicln(v ...interface{}) {
|
func Panicln (v ...interface{}) {
|
||||||
s := fmt.Sprint(v...)
|
s := fmt.Sprint(v...)
|
||||||
defaultLogger.Log(PriErr, s)
|
defaultLogger.Log(PriErr, s)
|
||||||
panic(s)
|
panic(s)
|
||||||
}
|
}
|
||||||
func Panicf(format string, v ...interface{}) {
|
func Panicf (format string, v ...interface{}) {
|
||||||
s := fmt.Sprintf(format, v...)
|
s := fmt.Sprintf(format, v...)
|
||||||
defaultLogger.Log(PriErr, s)
|
defaultLogger.Log(PriErr, s)
|
||||||
panic(s)
|
panic(s)
|
||||||
}
|
}
|
||||||
|
|
||||||
func Println(v ...interface{}) {
|
func Println (v ...interface{}) {
|
||||||
defaultLogger.Log(PriInfo, v...)
|
defaultLogger.Log(PriInfo, v...)
|
||||||
}
|
}
|
||||||
func Printf(format string, v ...interface{}) {
|
func Printf (format string, v ...interface{}) {
|
||||||
defaultLogger.Logf(PriInfo, format, v...)
|
defaultLogger.Logf(PriInfo, format, v...)
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
package log
|
package log
|
||||||
|
// Copyright 2013, CoreOS, Inc. All rights reserved.
|
||||||
// Copyright 2013, David Fisher. All rights reserved.
|
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
package log
|
package log
|
||||||
|
// Copyright 2013, CoreOS, Inc. All rights reserved.
|
||||||
// Copyright 2013, David Fisher. All rights reserved.
|
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
package log
|
package log
|
||||||
|
// Copyright 2013, CoreOS, Inc. All rights reserved.
|
||||||
// Copyright 2013, David Fisher. All rights reserved.
|
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
package log
|
package log
|
||||||
|
// Copyright 2013, CoreOS, Inc. All rights reserved.
|
||||||
// Copyright 2013, David Fisher. All rights reserved.
|
|
||||||
//
|
//
|
||||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
// you may not use this file except in compliance with the License.
|
// you may not use this file except in compliance with the License.
|
||||||
|
Reference in New Issue
Block a user