(level: 'info' | 'debug' | 'warn' | 'error' | 'off' = 'info')
| 25 | }); |
| 26 | |
| 27 | function defaultConfig(level: 'info' | 'debug' | 'warn' | 'error' | 'off' = 'info') { |
| 28 | return { |
| 29 | level, |
| 30 | globalLogPath: resolveGlobalLogPath(homeDir), |
| 31 | globalMaxBytes: 1_000_000, |
| 32 | globalFiles: 3, |
| 33 | sessionMaxBytes: 500_000, |
| 34 | sessionFiles: 2, |
| 35 | } as const; |
| 36 | } |
| 37 | |
| 38 | async function readGlobal(): Promise<string> { |
| 39 | return readGlobalAt(homeDir); |
no test coverage detected