[1] {
[1] dailyRotateFile: SyntaxError: Unexpected token n JSON at position 0
[1] at JSON.parse (<anonymous>)
[1] at add (/test/node_modules/winston-daily-rotate-file/daily-rotate-file.js:303:32)
[1] at ReadStream.<anonymous> (/test/node_modules/winston-daily-rotate-file/daily-rotate-file.js:257:17)
[1] at ReadStream.emit (events.js:376:20)
[1] at ReadStream.emit (domain.js:470:12)
[1] at addChunk (internal/streams/readable.js:309:12)
[1] at readableAddChunk (internal/streams/readable.js:280:11)
[1] at ReadStream.Readable.push (internal/streams/readable.js:223:10)
[1] at internal/fs/streams.js:186:14
[1] at FSReqCallback.wrapper [as oncomplete] (fs.js:561:5)
[1] }
hey guys, so it seems in order for query() to work it needs a valid json string and i am storing in plain text.
i saw from another issue that json needs to be enabled for this to the query() to work or am i missing something?
also the logger keeps adding
[31m
and ```[39m] to the file transportsee below
FORMATTER CONFIG
SAMPLE LOG
RESULT OF FILE TRANSPORT QUERY
anyone got any ideas, thanks