package
0.0.0-20230221115812-7ed358782f6e
Repository: https://github.com/sugar-pack/users-manager.git
Documentation: pkg.go.dev

# Functions

FromContext extracts Logger from context and returns itself otherwise, creates default one logger.
GetFileLineHook prepares and returns filename line hook.
GetLogger is a Logger getter with default settings.
No description provided by the author
WithContext puts logger to the context.
No description provided by the author
No description provided by the author

# Constants

DefaultFileNameLineKey is a field name in a logged record.
PathLen is a count of the directories to log, including file itself.
StartDepth is a depth of stack trace, because of log-wrapper, which is used here this start depth is required to find caller correctly.

# Structs

FileLineHook contains caller's log settings.

# Interfaces

Logger interface.

# Type aliases

Fields is a wrapper around logrus.Field.