Documentation
¶
Index ¶
Constants ¶
View Source
const ( LoggerCreatorGroup = "flam.watchdog.loggers.creator" LoggerDriverDefault = "flam.watchdog.loggers.driver.default" ProcessGroup = "flam.watchdog.process" PathDefaultLogger = "flam.watchdog.defaults.logger" PathDefaultLogChannel = "flam.watchdog.defaults.log.channel" PathDefaultLogStartLevel = "flam.watchdog.defaults.log.start.level" PathDefaultLogErrorLevel = "flam.watchdog.defaults.log.error.level" PathDefaultLogDoneLevel = "flam.watchdog.defaults.log.done.level" PathRun = "flam.watchdog.run" PathLoggers = "flam.watchdog.loggers" PathProcesses = "flam.watchdog.processes" )
Variables ¶
View Source
var ( DefaultLogger = "" DefaultLogChannel = "flam" DefaultLogStartLevel = log.Info DefaultLogErrorLevel = log.Error DefaultLogDoneLevel = log.Info )
View Source
var ( ErrProcessNotFound = errors.New("watchdog process not found") ErrProcessRunningError = errors.New("watchdog process running error") )
Functions ¶
func NewProvider ¶
Types ¶
type Facade ¶
type Facade interface {
HasLogger(id string) bool
ListLoggers() []string
GetLogger(id string) (Logger, error)
AddLogger(id string, logger Logger) error
HasProcess(id string) bool
ListProcesses() []string
GetProcess(id string) (Process, error)
AddProcess(id string, active bool, logger string, process Process) error
}
type LoggerCreator ¶
Click to show internal directories.
Click to hide internal directories.