fixed logging
This commit is contained in:
parent
d0e8fd9e3f
commit
7c2e055dd4
8 changed files with 19 additions and 45 deletions
|
|
@ -21,7 +21,7 @@ export const lokiConfig = cleanEnv(process.env, {
|
|||
// Push Configuration
|
||||
LOKI_PUSH_TIMEOUT: num({ default: 10000, desc: 'Push timeout in ms' }),
|
||||
LOKI_BATCH_SIZE: num({ default: 1024, desc: 'Batch size for log entries' }),
|
||||
LOKI_BATCH_WAIT: num({ default: 1000, desc: 'Batch wait time in ms' }),
|
||||
LOKI_BATCH_WAIT: num({ default: 5, desc: 'Batch wait time in ms' }),
|
||||
|
||||
// Retention Settings
|
||||
LOKI_RETENTION_PERIOD: str({ default: '30d', desc: 'Log retention period' }),
|
||||
|
|
@ -35,8 +35,6 @@ export const lokiConfig = cleanEnv(process.env, {
|
|||
LOKI_DEFAULT_LABELS: str({ default: '', desc: 'Default labels for all log entries (JSON format)' }),
|
||||
LOKI_SERVICE_LABEL: str({ default: 'stock-bot', desc: 'Service label for log entries' }),
|
||||
LOKI_ENVIRONMENT_LABEL: str({ default: 'development', desc: 'Environment label for log entries' }),
|
||||
|
||||
LOKI_FLUSH_INTERVAL_MS: num({ default: 5000, desc: 'Flush interval ms' }),
|
||||
});
|
||||
|
||||
// Export typed configuration object
|
||||
|
|
@ -60,5 +58,4 @@ export const {
|
|||
LOKI_DEFAULT_LABELS,
|
||||
LOKI_SERVICE_LABEL,
|
||||
LOKI_ENVIRONMENT_LABEL,
|
||||
LOKI_FLUSH_INTERVAL_MS,
|
||||
} = lokiConfig;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue