switched to log from logging
This commit is contained in:
parent
9065937d2c
commit
24680e403d
6 changed files with 44 additions and 34 deletions
|
|
@ -70,8 +70,8 @@ const flexibleDatabaseConfigSchema = z.object({
|
|||
}).default({}),
|
||||
}).default({});
|
||||
|
||||
// Flexible logging schema with defaults
|
||||
const flexibleLoggingConfigSchema = z.object({
|
||||
// Flexible log schema with defaults (renamed from logging)
|
||||
const flexibleLogConfigSchema = z.object({
|
||||
level: z.enum(['trace', 'debug', 'info', 'warn', 'error', 'fatal']).default('info'),
|
||||
format: z.enum(['json', 'pretty']).default('json'),
|
||||
loki: z.object({
|
||||
|
|
@ -86,7 +86,7 @@ const flexibleLoggingConfigSchema = z.object({
|
|||
export const appConfigSchema = baseConfigSchema.extend({
|
||||
environment: environmentSchema.default('development'),
|
||||
service: flexibleServiceConfigSchema,
|
||||
logging: flexibleLoggingConfigSchema,
|
||||
log: flexibleLogConfigSchema,
|
||||
database: flexibleDatabaseConfigSchema,
|
||||
queue: queueConfigSchema.optional(),
|
||||
http: httpConfigSchema.optional(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue