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
4
votes
0 answers
How to use bunyan logging for 3rd-party libraries?
I'm using bunyan to send logs to Google Cloud Logger. Regular logs are not show up there. Or they do show up but as one-liners. If a regular consonle.log will be logging an object, then each property of this object will be displayed as a separated…

stkvtflw
- 12,092
- 26
- 78
- 155
4
votes
1 answer
How to remove hostname, pid and other default fields from Bunyan log output?
These are default fields
{
"name": "myapp",
"hostname": "banana.local",
"pid": 40161,
"level": 30,
"msg": "hi",
"time": "2013-01-04T18:46:23.851Z",
"v": 0
}
How can I remove hostname, pid from json output or use bunyan pretty output…

Pablo
- 28,133
- 34
- 125
- 215
4
votes
3 answers
spying on bunyan log - NodeJS
Is there any way in which I can spy on the bunyan log to ensure I print out what I expect?
MyFile.js
const bunyan = require('bunyan');
const log = bunyan.createLogger({name: 'FailureAuditService'});
class someClass {
someFunct() {
if(x) {
…

physicsboy
- 5,656
- 17
- 70
- 119
4
votes
0 answers
Sensitive data logging in bunyan
I am using bunyan for logging in nodeJs.
I have sensitive info like password, cvv, pin. I want to exclude those params from logging. How to do it?

Sabbir Sayed
- 76
- 6
4
votes
0 answers
Serializer for any object in bunyan logger
How can I implement a serializer that handles any type of object without modifying the way to invoke the logger?

Diego
- 304
- 1
- 8
4
votes
2 answers
Using node.js Bunyan Logging with Intellij
I'm using bunyan logging for a node.js subsystem and typically use intellij IDEA. I would like to use bunyan's pretty printer so that I can get the benefits of buynan/json logs within intellij.
I cannot find any way to do this but feel it must be…

darrin
- 749
- 5
- 23
4
votes
5 answers
Error: ENOENT with Bunyan rotating-file logging (NodeJS)
I am using the Bunyan module for NodeJS logging. When I try using the rotating-file type, it makes my app crash every time and outputs this error:
Error: ENOENT, rename 'logs/info.log.3'
However, it never happens at the same time so I can't find…

Limezest
- 130
- 2
- 8
3
votes
1 answer
Getting PERMISSION_DENIED error even inside gcp's vm instance when using stackdriver logging with bunyan
I'm trying to use stackdriver logger inside a nodejs application with bunyan logger, I'm using it to log graphql requests, and I've been having problems with configuration, I've followed @google-cloud/logging-bunyan documentation.
The logger is…

BigFilhao
- 157
- 6
- 15
3
votes
2 answers
Implement custom logging in Loopback 4
Can Winston, Pino or Bunyan be used for logging in Loopback4? If so, what would be the basic steps to implement them in Loopback4?
I was able to make Winston work using Express while viewing this…

TechFanDan
- 3,329
- 6
- 46
- 89
3
votes
1 answer
NodeJS Bunyan Logstash Log Indexing
I am using Bunyan and bunyas-lumberjack to send my logs to log stash and index them in elastic search. The problem I am facing is when I am filtering the logs: I am using a basic filter for Logstash :
filter {
if [type == "json"]{
json {
…

alexsc
- 1,196
- 1
- 11
- 21
3
votes
1 answer
Properly logging errors with nodejs bunyan?
I read through Joyent's postmortem debug article and they recommended we use bunyan.
They talk about how the quality of the log information is very important and can help in solving errors when they arise. Then there are external blog sites which…

rublex
- 1,893
- 5
- 27
- 45
3
votes
0 answers
Logging frameworks for CasperJS
Is there a way to use winston or bunyan with CasperJS ? I couldn't get either to load correctly.
I tried the proxy method described in Can't require Underscore with CasperJS, but that also didn't work.

Irshad
- 199
- 2
- 9
2
votes
2 answers
Is there a way to show winston log files like we show it in bunyan CLI?
In Bunyan logger we can see the log files like this:
tail -f sample.log | bunyan and show the logs colorful and show json objects pretty, but I couldn't find some thinkg like that solution in Winston logger, any body has idea about that?

Mohammad Ranjbar Z
- 1,487
- 1
- 10
- 20
2
votes
1 answer
Bunyan logger not printing "ERROR" log level in aws cloudwatch log
We are using Bunyan lib for aws lambda function for cloud watch.
I am observing , when I print Bunyan logger with status error , it is printing error format as follows
{
"name": "test-abc",
"serviceID": ".......................",
…

made_in_india
- 2,109
- 5
- 40
- 63
2
votes
0 answers
@google-cloud/logging-bunyan not producing the logName i wrote in my code
I am using the @google-cloud/logging-bunyan (^1.2.3) library with bunyan (^1.8.12) to produce some logs that would be saved to bigquery using a sink.
I wanted to pass the logName attribute since it is used to create the table (table name). I am…