Skip to main content

Questions tagged [winston]

A multi-transport async logging library for node.js.

0 votes
0 answers
22 views

Http transport : Log buffering when offline

I have a nodeJS app running on a RPI with Winston as logger. It sends logs to a custom express api, using the built in http transport. However due to some instabilities on the internet connection on ...
user26403533's user avatar
0 votes
0 answers
16 views

How to avoid server overwhelming when write log by winston in nodejs?

I have a Socket server which accept about 250000 connections as the same time. So I need to create a Log function to save status and errors of each connections. I used Winston to save logs and the ...
Tung Le's user avatar
  • 39
0 votes
0 answers
9 views

Using sails.log.crit() in Sails.js with and without Winston

I'm working on a Node.js application using the Sails framework. I've noticed that the sails.log.crit() function works without integrating Winston, but I can't find any documentation or records on this ...
ihsan's user avatar
  • 1
0 votes
0 answers
12 views

Why does my winston.js formatter execute on messages that'll never be printed?

Why I'm asking: I want my winston log messages to show what file and line number they come from. According to my research, I need to create a logform formatter to do this. Here's what I came up with. ...
Daniel Kaplan's user avatar
0 votes
0 answers
19 views

Failed to start jenkins continuous integration server on centos

Jenkins.service is updated to auto start when server reboots, so after server reboot, not able to start the service, keep getting error msg. journalctl -xe Jun 13 17:06:10 jenkins-test-migrate jenkins[...
Chhunnet Leng's user avatar
0 votes
1 answer
32 views

Serverless function error, Winston mkdir ./logs

While trying to upload my app to Vercel to run with their server I get error: Error: ENOENT: no such file or directory, mkdir './logs' at Object.mkdirSync (node:fs:1391:3) at File....
Daniel's user avatar
  • 11
0 votes
0 answers
17 views

Testing "fprint" on Winston

I'm trying to unit test Winston logger. My issue is to test format of logger. I managed to write a successfull test for this but it does not cover AxiosError case and the arguments I called with spy ...
Sinan Bayar's user avatar
0 votes
0 answers
19 views

how to disable showing Time & Source of the log in each line in Restify application?

I'm working a NodeJS application that has been built using Restify framework. It uses Winston 3.13.0 package for logging. In the logs I observed that Time & Source of the log gets appended with ...
Rutvij Pandya's user avatar
0 votes
0 answers
28 views

NextJS Route Handler: log uncaught exceptions & rejected promises to Winston

I'm using the App Router from NextJS >13. Trying to figure out how to automatically log all uncaught errors in API route handlers to Winston. I tried process.on("uncaughtException", ...) ...
Carl Patenaude Poulin's user avatar
0 votes
0 answers
10 views

How to add new level for log of winston?

I want to add new level critical for log of winston-daily-rotate-file. I declare critical: LeveledLogMethod; in class Logger extends NodeJSStream.Transform of index.d.ts of winston/index.d.ts. In ...
Tung Le's user avatar
  • 39
0 votes
1 answer
32 views

Trouble Viewing Winston Logger Messages in Console with Node.js and TypeScript

I wonder if anyone can help me with this. I'm using Node and TypeScript and I'm trying to use the Winston logger, but no matter how much I try, I can't see the log messages in the console. I made ...
cealex's user avatar
  • 225
0 votes
0 answers
33 views

Winston logger is not logging errors thrown at the time of NestJS bootstraping

I have configured winston logger to log on both console and file with below given code. On file, everything is getting properly logged except when the errors are being thrown at NestJS bootstrapping ...
techwizards01 techwizards01's user avatar
0 votes
0 answers
19 views

Nest.js Winston logger not logging to syslog with facility user = 1

I need to change default logger in my Nest.js application because I need to logging to syslog with facility user which has number 1. I need this because Kibana on server is set just for this facility. ...
d3tr1tus's user avatar
  • 789
0 votes
0 answers
10 views

How to make winstonjs format.cli to show the timestamp?

I am using winstonjs logger with typescript "winston": "^3.13.0" I do create the logger like this import { createLogger, format, transports } from 'winston'; const IS_CLI_MODE = ...
Kristi Jorgji's user avatar
0 votes
0 answers
25 views

Winston not logging DEBUG logs

The problem is that I can see the DEBUG logs neither in Console nor in file. My Winston config: import * as winston from 'winston' const logger: winston.Logger = winston.createLogger({ level: '...
Viktor's user avatar
  • 1,471

15 30 50 per page
1
2 3 4 5
64