Documentation
¶
Index ¶
- Constants
- Variables
- func Debug(stdout bool, msg string)
- func DebugLog(ctx context.Context, module string, msg string)
- func Debugf(stdout bool, msg string, args ...interface{})
- func DebugfLog(ctx context.Context, module string, msg string, args ...interface{})
- func Error(stdout bool, msg string)
- func ErrorLog(ctx context.Context, module string, msg string)
- func Errorf(stdout bool, msg string, args ...interface{})
- func ErrorfLog(ctx context.Context, module string, msg string, args ...interface{})
- func Fatal(stdout bool, msg string)
- func FatalLog(ctx context.Context, module string, msg string)
- func Fatalf(stdout bool, msg string, args ...interface{})
- func FatalfLog(ctx context.Context, module string, msg string, args ...interface{})
- func HandleWarningMessages(stdout bool, warnings []string)
- func HandleWarningMessagesLog(ctx context.Context, module string, warnings []string)
- func Info(stdout bool, msg string)
- func InfoLog(ctx context.Context, module string, msg string)
- func Infof(stdout bool, msg string, args ...interface{})
- func InfofLog(ctx context.Context, module string, msg string, args ...interface{})
- func Initialize(mr bool, logLevel string, customLogsDir string)
- func Warning(stdout bool, msg string)
- func WarningLog(ctx context.Context, module string, msg string)
- func Warningf(stdout bool, msg string, args ...interface{})
- func WarningfLog(ctx context.Context, module string, msg string, args ...interface{})
- func WithOperationID(ctx context.Context, msg string) string
- type LogInfo
- type LogWriter
- type OutMessage
- type Writer
Constants ¶
const (
ModuleID = "LOG"
)
Variables ¶
var ActiveLogFile string
ActiveLogFile log file represents the file which will be used for the backend logging
Functions ¶
func Debug ¶
Debug logs DEBUG messages. stdout flag indicates if message is to be written to stdout in addition to log.
func Debugf ¶
Debugf logs DEBUG messages. stdout flag indicates if message is to be written to stdout in addition to log.
func Error ¶
Error logs ERROR messages. stdout flag indicates if message is to be written to stdout in addition to log.
func Errorf ¶
Errorf logs ERROR messages. stdout flag indicates if message is to be written to stdout in addition to log.
func Fatal ¶
Fatal logs CRITICAL messages and exits. stdout flag indicates if message is to be written to stdout in addition to log.
func Fatalf ¶
Fatalf logs CRITICAL messages and exits. stdout flag indicates if message is to be written to stdout in addition to log.
func HandleWarningMessages ¶
HandleWarningMessages logs multiple messages in WARNING mode
func Info ¶
Info logs INFO messages. stdout flag indicates if message is to be written to stdout in addition to log.
func Infof ¶
Infof 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 Warning ¶
Warning logs WARNING messages. stdout flag indicates if message is to be written to stdout in addition to log.
func Warningf ¶
Warningf logs WARNING messages. stdout flag indicates if message is to be written to stdout in addition to log.
func WarningfLog ¶
Types ¶
type OutMessage ¶
OutMessage contains information for output log
func (*OutMessage) ToJSON ¶
func (out *OutMessage) ToJSON() (string, error)
ToJSON converts OutMessage into JSON