Fiber Boilerplate
  • Introduction
  • Installation
  • Features
  • Project Structure
  • Project Flow
  • Deployment
  • Configuration File
    • Auth
    • Database
    • Log
    • Mail
    • PayPal
    • Profiler
    • Server
    • Session
    • Storage
    • Token
  • Additional Libraries
  • Project Dependencies
Powered by GitBook
On this page
  1. Configuration File

Log

PreviousDatabaseNextMail

Last updated 4 years ago

Was this helpful?

CtrlK

Was this helpful?

type Graylog struct {
   Host string `mapstructure:"GRAYLOG_HOST" yaml:"host" env:"GRAYLOG_HOST" env-default:"localhost"`
   Port string `mapstructure:"GRAYLOG_PORT" yaml:"port" env:"GRAYLOG_PORT" env-default:"12201"`
}

type FileLog struct {
   Path       string `mapstructure:"LOG_PATH" yaml:"path" env-default:"storage/logs"`
TimeFormat string `mapstructure:"LOG_TIME_FORMAT" yaml:"timeformat" env-default:"2006-01-02"`
}
type ConsoleLog struct {
Level string `mapstructure:"CONSOLE_LOG_LEVEL" yaml:"level" env-default:"info"`
Show bool `mapstructure:"CONSOLE_LOG_SHOW" yaml:"show" env-default:"false"`
}
type LogConfig struct {
TimeField string `yaml:"timefield"`
TimeFormat string `yaml:"timeformat"`
ConsoleLog ConsoleLog `yaml:"console"`
Monitor Graylog `yaml:"monitor"`
InfoLevel FileLog `yaml:"info"`
WarnLevel FileLog `yaml:"warn"`
ErrorLevel FileLog `yaml:"error"`
}