Documentation
¶
Index ¶
- type Action
- type DebugObject
- type Journal
- type Level
- type Log
- func (l *Log) Close() error
- func (l *Log) Debug(f string, v ...any)
- func (l *Log) DebugObject(name string, v any)
- func (l *Log) Error(f string, v ...any)
- func (l *Log) Fatal(f string, v ...any)
- func (l *Log) Info(f string, v ...any)
- func (l *Log) Message(level Level, f string, v ...any)
- func (l *Log) MessageContinue(level Level, f string, v ...any)
- func (l *Log) MessageTerminate(level Level, f string, v ...any)
- func (l *Log) OK(f string, v ...any)
- func (l *Log) Progress(level Level, f string, v ...any)
- func (l *Log) SetColors(flag bool)
- func (l *Log) SetDebugFlag(flag bool)
- func (l *Log) SetLevel(level Level)
- func (l *Log) SetWriter(w io.WriteCloser)
- func (l *Log) Warning(f string, v ...any)
- type Logger
- type NoLog
- func (NoLog) Debug(f string, v ...any)
- func (NoLog) DebugObject(name string, v any)
- func (NoLog) Error(f string, v ...any)
- func (NoLog) Fatal(f string, v ...any)
- func (NoLog) Info(f string, v ...any)
- func (NoLog) Message(level Level, f string, v ...any)
- func (NoLog) MessageContinue(level Level, f string, v ...any)
- func (NoLog) MessageTerminate(level Level, f string, v ...any)
- func (NoLog) OK(f string, v ...any)
- func (NoLog) Progress(level Level, f string, v ...any)
- func (NoLog) SetColors(bool)
- func (NoLog) SetDebugFlag(bool)
- func (NoLog) SetLevel(Level)
- func (NoLog) SetWriter(io.WriteCloser)
- func (NoLog) Warning(f string, v ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action string
const ( DiscoveredFile Action = "File" ScannedImage Action = "Scanned image" ScannedVideo Action = "Scanned video" Discarded Action = "Discarded" Uploaded Action = "Uploaded" Upgraded Action = "Server's asset upgraded" ERROR Action = "Error" LocalDuplicate Action = "Local duplicate" ServerDuplicate Action = "Server has photo" Stacked Action = "Stacked" ServerBetter Action = "Server's asset is better" Album Action = "Added to an album" LivePhoto Action = "Live photo" FailedVideo Action = "Failed video" Unsupported Action = "File type not supported" Metadata Action = "Metadata files" AssociatedMetadata Action = "Associated with metadata" INFO Action = "Info" NotSelected Action = "Not selected because options" ServerError Action = "Server error" )
type DebugObject ¶
type DebugObject interface {
DebugObject() any
}
type Journal ¶
type Journal struct {
Log Logger
// contains filtered or unexported fields
}
func NewJournal ¶
type Log ¶
type Log struct {
// contains filtered or unexported fields
}
func (*Log) DebugObject ¶
func (*Log) SetDebugFlag ¶
func (*Log) SetWriter ¶
func (l *Log) SetWriter(w io.WriteCloser)
type Logger ¶
type Logger interface {
Debug(f string, v ...any)
DebugObject(name string, v any)
Info(f string, v ...any)
OK(f string, v ...any)
Warning(f string, v ...any)
Error(f string, v ...any)
Fatal(f string, v ...any)
Message(level Level, f string, v ...any)
Progress(level Level, f string, v ...any)
MessageContinue(level Level, f string, v ...any)
MessageTerminate(level Level, f string, v ...any)
SetWriter(io.WriteCloser)
SetLevel(Level)
SetColors(bool)
SetDebugFlag(bool)
}
type NoLog ¶
type NoLog struct{}
func (NoLog) DebugObject ¶
func (NoLog) SetDebugFlag ¶
func (NoLog) SetWriter ¶
func (NoLog) SetWriter(io.WriteCloser)
Click to show internal directories.
Click to hide internal directories.