Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

winston transport file another directory

// You can specify the path in a filename (just make sure it is a valid one)
const options = { filename: '../logs/combined.log' }
new transports.File(options)
 
PREVIOUS NEXT
Tagged: #winston #transport #file #directory
ADD COMMENT
Topic
Name
8+3 =