Questions tagged [express-winston]
11 questions
3
votes
0 answers
Logging http request without authorization/token header express-winston on openapi-generator-cli server stub
I am trying to use express-winston to log on my nodejs-express-server app.
This app is an openapi API server stub created from openapi-generator-cli.
Was referring to this post about excluding params while logging the request.
My intention here is…

Naveen Karnam
- 433
- 2
- 9
- 26
2
votes
0 answers
How to store nodejs server runtime error logs in file winston nodejs
I am new to winston and trying to store nodejs server logs into file.
const {
createLogger,
transports,
format
} = require('winston');
const logger = createLogger({
transports: [
new transports.File({
filename :…

Archit Sandesara
- 605
- 1
- 12
- 25
1
vote
0 answers
express-winston disappears in GCP Logs
Set up the use of winston and express-winston logging and stream data into GCP Logging.
Set up looks like:
import winston from 'winston';
import ExpressWinston from 'express-winston';
import { LoggingWinston } from…

Andrei S
- 58
- 1
- 8
1
vote
1 answer
Store Winston js log files on GKE
I'm using winston js for my node js app logging. I'm deploying my dockerized app on GKE and want to store my files outside the container. Where should I store those files and what path should be mounted.
I'm really new to the kubernetes volumes and…

Dawn tns
- 143
- 1
- 7
1
vote
1 answer
Setting a the same unique ID in Winston for 2 transports
I am using winston-js as a logger in my project - it works fine, however I'm now trying to add a unique log Id to each log line for debugging.
I have 2 transports - 1) Console, 2) File.
I'd like the log ID for the same log line to be the same in for…

tbowden
- 1,008
- 1
- 19
- 44
1
vote
1 answer
Nodejs / Express / Winston logger: how to elegantly put req.headers.username in log format?
My nodejs / Express js backend is using Winston logger.
src/utils/logger.ts:
import winston from 'winston'
import moment from 'moment';
import os from 'os';
import process from 'process';
import request from 'express';
const levels = {
error:…

Kid_Learning_C
- 2,605
- 4
- 39
- 71
1
vote
0 answers
How to store log using Winston logger in Mysql DB?
I have written according to winston-mysql document. I have described a table in mysql db for storing logs but it's not working.The below is my logger.js -
const winston = require('winston');
const winston_mysql = require('winston-mysql')
var…

Nikeeta kurrey
- 103
- 9
1
vote
1 answer
nestjs winston log file is written with colors encoding
I am facing the same issue as https://github.com/winstonjs/winston/issues/1416 where logger.info('Hello there. How are you?'); is resulting �[32minfo�[39m: �[32mHello there. How are you?�[39m
I don't know where colorize is so that I can remove it,…

Dom
- 580
- 4
- 26
0
votes
0 answers
How to add extra property express mongodb
i was use express winston and winston mongodb . if i add extra my own property in express winston use
`baseMeta : {
expireAfterSeconds : 4000
`
then i was see file expireAfterSconds property . but i can't add mongodb .mongodb add only auto…
0
votes
1 answer
Integrate Winston into node application
I have my node application architecture like this-
app.js
import express from 'express';
var app = express();
app.use('/route', Router);
Router.js
import express from 'express';
var router = express.Router();
router.get('/route',…

Frosted Cupcake
- 1,909
- 2
- 20
- 42
0
votes
1 answer
How to add express-winston to Parse Server example?
How do I use express-winston to log all http requests sent to Parse Server?
I tried this:
var express = require('express');
var ParseServer = require('parse-server').ParseServer;
const app = express();
const winston = require('winston')
const…

Manuel
- 14,274
- 6
- 57
- 130