Add better logging
This commit is contained in:
@@ -14,6 +14,7 @@ type Config struct {
|
||||
Models []ModelEntry `yaml:"models"`
|
||||
Auth AuthConfig `yaml:"auth"`
|
||||
Conversations ConversationConfig `yaml:"conversations"`
|
||||
Logging LoggingConfig `yaml:"logging"`
|
||||
}
|
||||
|
||||
// ConversationConfig controls conversation storage.
|
||||
@@ -30,6 +31,14 @@ type ConversationConfig struct {
|
||||
Driver string `yaml:"driver"`
|
||||
}
|
||||
|
||||
// LoggingConfig controls logging format and level.
|
||||
type LoggingConfig struct {
|
||||
// Format is the log output format: "json" (default) or "text".
|
||||
Format string `yaml:"format"`
|
||||
// Level is the minimum log level: "debug", "info" (default), "warn", or "error".
|
||||
Level string `yaml:"level"`
|
||||
}
|
||||
|
||||
// AuthConfig holds OIDC authentication settings.
|
||||
type AuthConfig struct {
|
||||
Enabled bool `yaml:"enabled"`
|
||||
|
||||
Reference in New Issue
Block a user