We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bcae39 commit 471b942Copy full SHA for 471b942
1 file changed
src/services/logger.ts
@@ -7,10 +7,10 @@ const multiTransport = P.transport({
7
target: 'pino-roll',
8
level: UNO_LOG_LEVEL,
9
options: {
10
- destination: './data/logs/unoapi.log',
11
- frequency: '1d', // Rotate daily ('1d' for one day)
12
- size: '10MB', // Optional: Rotate also at 10MB file size
13
- mkdir: true, // Create the logs directory if it doesn't exist
+ file: './data/logs/unoapi.log',
+ frequency: 86400000, // Rotate daily ('1d' for one day)
+ size: '10m', // Optional: Rotate also at 10MB file size
+ // mkdir: true, // Create the logs directory if it doesn't exist
14
},
15
16
{
0 commit comments