This commit is contained in:
Rutra
2026-05-13 11:50:22 +02:00
commit 2068229f89
128 changed files with 9215 additions and 0 deletions

19
config/logger.js Normal file
View File

@@ -0,0 +1,19 @@
import env from '#start/env';
import app from '@adonisjs/core/services/app';
import { defineConfig, syncDestination, targets } from '@adonisjs/core/logger';
const loggerConfig = defineConfig({
default: 'app',
loggers: {
app: {
enabled: true,
name: env.get('APP_NAME'),
level: env.get('LOG_LEVEL'),
destination: !app.inProduction ? await syncDestination() : undefined,
transport: {
targets: [targets.file({ destination: 1 })],
},
},
},
});
export default loggerConfig;
//# sourceMappingURL=logger.js.map