You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have added papertrail with winston, but facing below error on console. for every 5 sec this error was generated. I think papertrail trying to connect but not able to connect.
Papertrail connection error: TypeError: net.createConnection is not a function
at connectStream
I have added papertrail with winston, but facing below error on console. for every 5 sec this error was generated. I think papertrail trying to connect but not able to connect.
Papertrail connection error: TypeError: net.createConnection is not a function
at connectStream
Papertrail connection error: Error: getaddrinfo EAI_AGAIN logsXX.papertrailapp.com
Package Versions:
"winston": "^2.4.4",
"winston-papertrail": "^1.0.5"
code in React:
// Import modules
import {winston, transports, createLogger, Logger} from 'winston'
import {Papertrail} from 'winston-papertrail'
// Logger configuration
const logConfiguration = {
//exitOnError: false,
transports: [
new Papertrail({
level: 'info',
colorize: true,
host:'logsX.papertrailapp.com',
port:XXXXX
})
]
};
var logger = new Logger(logConfiguration);
// Export the logger
export default logger;
Thnaks
The text was updated successfully, but these errors were encountered: