Categorygithub.com/tryfix/log
modulepackage
1.4.0
Repository: https://github.com/tryfix/log.git
Documentation: pkg.go.dev

# README

go-log

Go-Log is a wrapper for go standard logger which allows to create custom log instances pointing to the same Stdout but different log levels and different runtime.Caller levels.

# Packages

No description provided by the author

# Functions

Debug logs with DEBUG level using the standard logger.
DebugContext logs with DEBUG level with context and prefix using the standard logger.
Error logs with ERROR level using the standard logger.
ErrorContext logs with ERROR level with context and prefix using the standard logger.
Fatal logs with FATAL level using the standard logger.
FatalContext logs with FATAL level with context and prefix using the standard logger.
Deprecated: use WithSkipFrameCount instead.
Info logs with INFO level using the standard logger.
InfoContext logs with INFO level with context and prefix using the standard logger.
NewLog creates a new instance of the logger.
No description provided by the author
No description provided by the author
Prefixed appends the given prefix value to the existing prefix value.
Trace logs with TRACE level using the standard logger.
TraceContext logs with TRACE level with context and prefix using the standard logger.
Warn logs with WARN level using the standard logger.
WarnContext logs with WARN level with context and prefix using the standard logger.
WithColors enables colours in log messages.
Deprecated: use WithCtxMapExtractor instead.
WithCtxMapExtractor allows setting up a function to extract values from the context as a key:value map.
WithCtxTraceExtractor allows setting up of a function to extract trace from the context.
WithFilePath sets whether the file path is logged or not.
WithFuncPath sets whether the func path is logged or not.
WithLevel sets the log level.
WithOutput sets the output format for log entries.
Deprecated: Do not use with the json logger.
WithSkipFrameCount sets the frame count to skip when reading filepath, func path.
WithStdOut sets the log writer.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
Option represents a function that does one or more alterations to 'logOptions' inside the logger.
No description provided by the author