Documentation
¶
Index ¶
- Variables
- func Critical(logger *logging.Logger, msg string)
- func Debug(logger *logging.Logger, stdout bool, msg string)
- func DebugLog(module string, stdout bool, msg string)
- func DebugfLog(module string, stdout bool, msg string, args ...interface{})
- func Error(logger *logging.Logger, stdout bool, msg string)
- func ErrorLog(module string, stdout bool, msg string)
- func ErrorfLog(module string, stdout bool, msg string, args ...interface{})
- func FatalLog(module string, stdout bool, msg string)
- func FatalfLog(module string, stdout bool, msg string, args ...interface{})
- func HandleWarningMessagesLog(module string, stdout bool, warnings []string)
- func Info(logger *logging.Logger, stdout bool, msg string)
- func InfoLog(module string, stdout bool, msg string)
- func InfofLog(module string, stdout bool, msg string, args ...interface{})
- func Initialize(mr bool, logLevel logging.Level, fileName FileName, customLogsDir string)
- func Warning(logger *logging.Logger, stdout bool, msg string)
- func WarningLog(module string, stdout bool, msg string)
- func WarningfLog(module string, stdout bool, msg string, args ...interface{})
- type CustomWriter
- type FileName
- type LogInfo
- type LogWriter
- type OutMessage
- type Writer
Constants ¶
This section is empty.
Variables ¶
var ActiveLogFile string
ActiveLogFile log file represents the file which will be used for the backend logging
Functions ¶
func DebugLog ¶
DebugLog logs DEBUG messages. stdout flag indicates if message is to be written to stdout in addition to log.
func DebugfLog ¶
DebugfLog logs DEBUG messages. stdout flag indicates if message is to be written to stdout in addition to log.
func ErrorLog ¶
ErrorLog logs ERROR messages. stdout flag indicates if message is to be written to stdout in addition to log.
func ErrorfLog ¶
ErrorfLog logs ERROR messages. stdout flag indicates if message is to be written to stdout in addition to log.
func FatalLog ¶
FatalLog logs CRITICAL messages and exits. stdout flag indicates if message is to be written to stdout in addition to log.
func FatalfLog ¶
FatalfLog logs CRITICAL messages and exits. stdout flag indicates if message is to be written to stdout in addition to log.
func HandleWarningMessagesLog ¶
HandleWarningMessagesLog logs multiple messages in WARNING mode
func InfofLog ¶
InfofLog logs INFO messages. stdout flag indicates if message is to be written to stdout in addition to log.
func Initialize ¶
Initialize logger with given level
func WarningLog ¶
WarningLog logs WARNING messages. stdout flag indicates if message is to be written to stdout in addition to log.
func WarningfLog ¶
WarningfLog logs WARNING messages. stdout flag indicates if message is to be written to stdout in addition to log.
Types ¶
type CustomWriter ¶
type CustomWriter struct {
// contains filtered or unexported fields
}
func NewCustomWriter ¶
type OutMessage ¶
OutMessage contains information for output log
func (*OutMessage) ToJSON ¶
func (out *OutMessage) ToJSON() (string, error)
ToJSON converts OutMessage into JSON