Documentation
¶
Index ¶
- type Config
- func (c Config) GetBufferSize() int
- func (c Config) GetDirectory() string
- func (c Config) GetFilePrefixAndExt() (string, string)
- func (c Config) GetFilename() string
- func (c Config) GetMaxSizeInBytes() int64
- func (c Config) GetRotateTimeout() time.Duration
- func (c Config) IsBuffered() bool
- func (c Config) IsCompress() bool
- type LogFile
- type Logger
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Filename string `schema:"Имя файла,путь до файла в который будут записываться логи"`
MaxSizeMb int `` /* 228-byte string literal not displayed */
RotateTimeoutMs int `` /* 228-byte string literal not displayed */
Compress bool `schema:"Сжатие логов,архивирует файлы в gzip"`
BufferSize int `` /* 149-byte string literal not displayed */
}
func (Config) GetBufferSize ¶
func (Config) GetDirectory ¶
func (Config) GetFilePrefixAndExt ¶
func (Config) GetFilename ¶
func (Config) GetMaxSizeInBytes ¶
func (Config) GetRotateTimeout ¶
func (Config) IsBuffered ¶
func (Config) IsCompress ¶
type LogFile ¶
func CollectExistedLogs ¶
Click to show internal directories.
Click to hide internal directories.