Documentation
¶
Index ¶
- type Logger
- func (l *Logger) ConfigLoaded(orgDir, obsidianDir string, interval time.Duration)
- func (l *Logger) Conflict(file, winner, reason string)
- func (l *Logger) ConversionError(source, dest string, err error)
- func (l *Logger) FileError(file string, err error)
- func (l *Logger) FileSynced(source, dest, reason string)
- func (l *Logger) Skipped(file, reason string)
- func (l *Logger) StateError(operation string, err error)
- func (l *Logger) SyncCompleted(filesProcessed int, errors int, duration time.Duration)
- func (l *Logger) SyncStarted(orgDir, obsidianDir string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
Logger wraps charm/log for structured logging
func NewFileLogger ¶
NewFileLogger creates a logger that writes to a file
func NewMultiLogger ¶
NewMultiLogger creates a logger that writes to multiple outputs
func NewWithLevel ¶
NewWithLevel creates a logger with a specific level
func (*Logger) ConfigLoaded ¶
ConfigLoaded logs successful config loading
func (*Logger) ConversionError ¶
ConversionError logs a conversion error
func (*Logger) FileSynced ¶
FileSynced logs a successful file sync
func (*Logger) StateError ¶
StateError logs a state-related error
func (*Logger) SyncCompleted ¶
SyncCompleted logs the completion of a sync operation
func (*Logger) SyncStarted ¶
SyncStarted logs the start of a sync operation