Bunyan is a simple and fast JSON logging library for node.js services and a CLI tool for nicely viewing those logs.
Questions tagged [bunyan]
115 questions
0
votes
2 answers
Node JS bunyon logging - How to customize to add method name, class name, time of execution, line number in log
Is there a configuration parameter for Node JS bunyan where each log can include the corresponding line number, method and class respectively.
user2712982
0
votes
1 answer
More precise time for python-bunyan logger?
I've been using bunyan logger for nodejs, so when I had to program in python again I went out and found a compatible logger for python.
https://github.com/Sagacify/logger-python
https://pypi.python.org/pypi/bunyan/0.1.2
The problem is, this…

lingxiao
- 1,214
- 17
- 33
0
votes
1 answer
EMFILE: too many open files, open BUNYAN or WINSTON
I use Bunyan then I try Winston and I got same result that it says
EMFILE: too many open files, open
So that I understand that I am doing something wrong. What I try to test is
var winston = require('winston');
setInterval(function(){
var…

Barış Velioğlu
- 5,709
- 15
- 59
- 105
0
votes
1 answer
MapperParsingException when logging requests with bunyan/logstash/elasticsearch
We are logging Restify requests in ElasticSearch using Logstash and Bunyan. However, when including the JSON body in logging the index gets conflicts because fields with the same name sometimes have different types.
One example is when req.body is…

Anders Bornholm
- 1,326
- 7
- 18
0
votes
1 answer
Restify req.getLogger is not a function
How do I install bunyan logger so that on the routes they can get children of bunyan for their own loggers?
Attempt:
import * as restify from 'restify';
import {createLogger} from 'bunyan';
let app =…

A T
- 13,008
- 21
- 97
- 158
0
votes
3 answers
Restify - Best practice for accessing logger from a module
I have looked for the answer to this for a while and just have not come up with a solution. I understand that I have access to the builtin logger from req.log.xxxxx(...), but what about a module that I have required into my controller? For…

Aaron Wagner
- 317
- 1
- 3
- 15
0
votes
1 answer
How can Bunyan be used to save logs into a specific file?
My NodeJS app is acting buggy and I want to properly log everything that is happening while it is being used.
I came across Bunyan and it looks great. Except, like all other "loggers" it simply prints to stdout which makes it very hard for me to…

CodyBugstein
- 21,984
- 61
- 207
- 363
0
votes
2 answers
Logging large messages with node-bunyan-syslog
I'm using node-bunyan-syslog to provide syslog streaming for my node application's Bunyan logger, which seems to be a commonly used library for syslog logging in node applications. Here's my basic logger implementation:
var bunyan =…

kav
- 35
- 1
- 7
0
votes
1 answer
LogRotate Bunyan. rotate every 1 minute for testing
I want to try Log Rotate in Bunyan
this is my script
var mongoClient = require('mongodb'),
bunyan = require('bunyan');
var log = bunyan.createLogger({
name: 'myapp',
streams: [
{
level:'debug',
stream:…

Twinsen
- 863
- 1
- 12
- 23
-2
votes
1 answer
How do I add tags to cloud logging? For example, GET, POST
I'm the web developer. I'm currently using the Google Cloud platform. Deploy the next.js(node.js) application through Google Cloud Run. Use the Google Cloud platform throughout your company's product. I have a question to ask you.
How do I add tags…

lbh
- 1
- 1