mirror of
https://github.com/acepanel/panel.git
synced 2026-02-05 02:07:18 +08:00
43 lines
1.1 KiB
Go
43 lines
1.1 KiB
Go
package config
|
|
|
|
import (
|
|
"github.com/goravel/framework/facades"
|
|
)
|
|
|
|
func init() {
|
|
config := facades.Config()
|
|
config.Add("logging", map[string]any{
|
|
// Default Log Channel
|
|
//
|
|
// This option defines the default log channel that gets used when writing
|
|
// messages to the logs. The name specified in this option should match
|
|
// one of the channels defined in the "channels" configuration array.
|
|
"default": "stack",
|
|
|
|
// Log Channels
|
|
//
|
|
// Here you may configure the log channels for your application.
|
|
// Available Drivers: "single", "daily", "custom", "stack"
|
|
// Available Level: "debug", "info", "warning", "error", "fatal", "panic"
|
|
"channels": map[string]any{
|
|
"stack": map[string]any{
|
|
"driver": "stack",
|
|
"channels": []string{"daily"},
|
|
},
|
|
"single": map[string]any{
|
|
"driver": "single",
|
|
"path": "storage/logs/panel.log",
|
|
"level": "info",
|
|
"print": true,
|
|
},
|
|
"daily": map[string]any{
|
|
"driver": "daily",
|
|
"path": "storage/logs/panel.log",
|
|
"level": "info",
|
|
"days": 7,
|
|
"print": true,
|
|
},
|
|
},
|
|
})
|
|
}
|