Closed savva312 closed 1 year ago
Hi @savva312,
seq-logging
is not usually used directly. Have you considered using winston-seq
, pino-seq
or one of the others?
SafeGlobalBlob is defined here https://github.com/datalust/seq-logging/blob/dev/seq_logger.js#L3
as either the global Blob
function or the buffer
module so it seems that you have neither of those.
hey thanks for the reply
am using 'winston-seq' actually but since the error was coming from this i posted the error here if i need to post it in winston-seq package then no problem please let me know and i will close this
this is how i used it based on the docs
import winston from "winston";
import {SeqTransport} from "@datalust/winston-seq";
const logger = winston.createLogger({
level: 'info',
format: winston.format.combine( /* This is required to get errors to log with stack traces. See https://github.com/winstonjs/winston/issues/1498 */
winston.format.errors({ stack: true }),
winston.format.json(),
),
defaultMeta: { /* application: 'your-app-name' */ },
transports: [
new winston.transports.Console({
format: winston.format.simple(),
}),
new SeqTransport({
serverUrl: "https://your-seq-server:5341",
apiKey: "your-api-key",
onError: (e => { console.error(e) }),
handleExceptions: true,
handleRejections: true,
})
]
});
Which version of node are you running this on?
Node: v14.16.0
"winston": "^3.8.2"
"@datalust/winston-seq": "^2.0.0",
The version of Node is the problem. Blob
was not added until 14.18
.
Thank you so much for this.Saved me a lot of time!
Hello i am getting the following error while trying to run a script with seq-logging attached
I have no idea what is this and google is not helping. Any idea how tor resolve this?