Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultFilename = "mcvisor.log"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Console ConsoleConfig `json:"console"` File *FileConfig `json:"file,omitempty"` }
type ConsoleConfig ¶
func (ConsoleConfig) CreateLogging ¶
func (c ConsoleConfig) CreateLogging() (log.Handler, log.Level, suture.Service)
func (ConsoleConfig) MarshalJSON ¶
func (c ConsoleConfig) MarshalJSON() ([]byte, error)
func (*ConsoleConfig) UnmarshalJSON ¶
func (c *ConsoleConfig) UnmarshalJSON(data []byte) error
type FileConfig ¶
type FileConfig struct { Disabled bool `json:"disabled,omitempty"` Level log.Level `json:"level"` *lumberjack.Logger // contains filtered or unexported fields }
func NewFileConfig ¶
func NewFileConfig(baseDir string) *FileConfig
func (*FileConfig) CreateLogging ¶
func (f *FileConfig) CreateLogging() (log.Handler, log.Level, suture.Service)
func (*FileConfig) WriteEntry ¶
Click to show internal directories.
Click to hide internal directories.