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 (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 (*FileConfig) WriteEntry ¶
Click to show internal directories.
Click to hide internal directories.