Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
Load Read config from file.
func New ¶
func New(options ...LogOptions) *slog.Logger
Types ¶
type LogOptions ¶
type LogOptions func(*Log)
func WithCompress ¶
func WithCompress(compress bool) LogOptions
func WithFile ¶
func WithFile(file string) LogOptions
func WithLevel ¶
func WithLevel(level string) LogOptions
func WithMaxSize ¶
func WithMaxSize(maxSize int) LogOptions
func WithShort ¶
func WithShort(Short bool) LogOptions
func WithType ¶
func WithType(tp string) LogOptions
Directories ¶
Path | Synopsis |
---|---|
* @Description : Blue Planet * @Author : serialt * @Email : tserialt@gmail.com * @Created Time : 2023-04-18 08:31:58 * @Last modified : 2023-07-05 13:07:37 * @FilePath : /sugar/exmaple/main.go * @Other : * @ : * * *
|
* @Description : Blue Planet * @Author : serialt * @Email : tserialt@gmail.com * @Created Time : 2023-04-18 08:31:58 * @Last modified : 2023-07-05 13:07:37 * @FilePath : /sugar/exmaple/main.go * @Other : * @ : * * * |
Click to show internal directories.
Click to hide internal directories.