Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init(options LogOptions) error
Types ¶
type Formatter ¶
type LogOptions ¶
type LogOptions struct {
// sealer log file path, default log directory is `/var/lib/sealer/log`
OutputPath string
// Verbose: sealer log level,if it is ture will set debug log mode.
Verbose bool
// DisableColor if true will disable outputting colors.
DisableColor bool
RemoteLoggerURL string
RemoteLoggerTaskName string
// LogToFile flag represent whether write log to disk, default is false.
LogToFile bool
}
type RemoteLogHook ¶
RemoteLogHook to send logs via remote URL.
func NewRemoteLogHook ¶
func NewRemoteLogHook(remoteURL, taskName string) (*RemoteLogHook, error)
func (*RemoteLogHook) Levels ¶
func (hook *RemoteLogHook) Levels() []logrus.Level
Click to show internal directories.
Click to hide internal directories.