Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileLogger ¶
func NewLogger ¶
func NewLogger(devMode bool, appDir string) *FileLogger
NewLogger creates a new FileLogger instance.
Parameters:
- devMode: a boolean indicating whether the logger should output more detailed messages suitable for debugging.
- appDir: a string representing the subdirectory where log files should be stored. This should be a relative path, and will result in `user_home_dir/[appDir]/logs`.
func (*FileLogger) LogDebug ¶
func (l *FileLogger) LogDebug(message string)
func (*FileLogger) LogError ¶
func (l *FileLogger) LogError(err error)
func (*FileLogger) LogFatal ¶
func (l *FileLogger) LogFatal(err error)
func (*FileLogger) LogInfo ¶
func (l *FileLogger) LogInfo(message string)
func (*FileLogger) LogWarn ¶
func (l *FileLogger) LogWarn(message string)
Click to show internal directories.
Click to hide internal directories.