diff options
author | 2024-02-11 19:15:20 +0530 | |
---|---|---|
committer | 2024-02-13 06:59:44 +0530 | |
commit | 8fec21d6bccfa778c14c1714d6444312e36fc3f1 (patch) | |
tree | cab910ad5048eece2d229648f2c17000ac86a44d /config/logger.ts | |
parent | updates (diff) | |
download | ferdium-server-03e8c2b08e08822bcd069ad482799eecf1ede777.tar.gz ferdium-server-03e8c2b08e08822bcd069ad482799eecf1ede777.tar.zst ferdium-server-03e8c2b08e08822bcd069ad482799eecf1ede777.zip |
Diffstat (limited to 'config/logger.ts')
-rw-r--r-- | config/logger.ts | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/config/logger.ts b/config/logger.ts new file mode 100644 index 0000000..a9078b6 --- /dev/null +++ b/config/logger.ts | |||
@@ -0,0 +1,14 @@ | |||
1 | import env from '#start/env'; | ||
2 | import { defineConfig } from '@adonisjs/core/logger'; | ||
3 | |||
4 | export default defineConfig({ | ||
5 | default: 'app', | ||
6 | |||
7 | loggers: { | ||
8 | app: { | ||
9 | enabled: true, | ||
10 | name: env.get('APP_NAME', 'Ferdium-server'), | ||
11 | level: env.get('LOG_LEVEL', 'info'), | ||
12 | }, | ||
13 | }, | ||
14 | }); | ||