aswi2023one-team-to-rule-them-all-gitlab/src/logging/logger.ts @ af8eb9a6
1 |
import { logger } from 'react-native-logs' |
---|---|
2 |
|
3 |
const config = { |
4 |
severity: 'debug', |
5 |
transportOptions: { |
6 |
colors: false, |
7 |
printLevel: true, |
8 |
printDate: true, |
9 |
enabled: true, |
10 |
tag: 'custom-tag', |
11 |
format: (msg: string) => msg, |
12 |
dateFormat: 'hh:mm:ss', |
13 |
},
|
14 |
levels: { |
15 |
debug: 0, |
16 |
info: 1, |
17 |
warn: 2, |
18 |
error: 3, |
19 |
},
|
20 |
async: false, |
21 |
}
|
22 |
|
23 |
export const log = logger.createLogger(config) |