Documentation
¶
Index ¶
- Variables
- func Debug(format string, args ...interface{})
- func Error(format string, args ...interface{})
- func Info(format string, args ...interface{})
- func SetupSystemLog() error
- func Warn(format string, args ...interface{})
- type Level
- type Logger
- func (l *Logger) Debug(format string, args ...interface{})
- func (l *Logger) Error(format string, args ...interface{})
- func (l *Logger) Info(format string, args ...interface{})
- func (l *Logger) SetLevel(level Level)
- func (l *Logger) Warn(format string, args ...interface{})
- func (l *Logger) With(key string, value interface{}) *Logger
Constants ¶
This section is empty.
Variables ¶
View Source
var Default = New("")
Default is the default logger instance
Functions ¶
func Debug ¶
func Debug(format string, args ...interface{})
Debug logs a debug message using the default logger
func Error ¶
func Error(format string, args ...interface{})
Error logs an error message using the default logger
func Info ¶
func Info(format string, args ...interface{})
Info logs an info message using the default logger
func SetupSystemLog ¶
func SetupSystemLog() error
SetupSystemLog configures process logging to append to a per-process log file while preserving stdout/stderr output.
Root/system process path:
fs.Resolve("cache:log/services/<name>.log")
User process path:
$HOME/.cache/log/services/<name>.log
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger provides structured logging with levels and components
Click to show internal directories.
Click to hide internal directories.