Documentation ¶
Overview ¶
Package sylog implements a basic logger for Singularity Go code to log messages in the same format as singularity_message() from C code
Index ¶
- func Debugf(format string, a ...interface{})
- func Errorf(format string, a ...interface{})
- func Fatalf(format string, a ...interface{})
- func GetEnvVar() string
- func GetLevel() int
- func Infof(format string, a ...interface{})
- func SetLevel(l int)
- func Verbosef(format string, a ...interface{})
- func Warningf(format string, a ...interface{})
- func Writer() io.Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Debugf ¶
func Debugf(format string, a ...interface{})
Debugf writes a DEBUG level message to the log.
func Errorf ¶
func Errorf(format string, a ...interface{})
Errorf writes an ERROR level message to the log but does not exit. This should be called when an error is being returned to the calling thread
func Fatalf ¶
func Fatalf(format string, a ...interface{})
Fatalf is equivalent to a call to Errorf followed by os.Exit(255). Code that may be imported by other projects should NOT use Fatalf.
func GetEnvVar ¶
func GetEnvVar() string
GetEnvVar returns a formatted environment variable string which can later be interpreted by init() in a child proc
func Infof ¶
func Infof(format string, a ...interface{})
Infof writes an INFO level message to the log. By default, INFO level messages will always be output (unless running in silent)
func Verbosef ¶
func Verbosef(format string, a ...interface{})
Verbosef writes a VERBOSE level message to the log. This should probably be deprecated since the granularity is often too fine to be useful.
Types ¶
This section is empty.