Documentation
¶
Index ¶
- Variables
- func CleanUp()
- func DebugWithElapsedTime(entry *log.Entry, start time.Time, args ...interface{})
- func DebugfWithElapsedTime(entry *log.Entry, start time.Time, format string, args ...interface{})
- func GetLoggerInstance() (*log.Logger, error)
- func InitializeLogger(file *os.File, logFileName string, format log.Formatter, verboseFlag bool) (*log.Logger, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //ErrLoggerNotInitialized is thrown when uninitialized logger instance is requested ErrLoggerNotInitialized = errors.New("LoggerNotInitialized") )
Functions ¶
func DebugWithElapsedTime ¶
DebugWithElapsedTime writes a new debug line, including a field with elapsed time call with defer at the start of a function: defer DebugWithElapsedTime(logger, time.Now(), "test")
func DebugfWithElapsedTime ¶
DebugfWithElapsedTime writes a new debug format line, including a field with elapsed time call with defer at the start of a function: defer DebugWithElapsedTime(logger, time.Now(), "test %v", "test")
func GetLoggerInstance ¶
GetLoggerInstance returns singleton instance of the logger
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.