question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Logging not working

See original GitHub issue

Bug Report

Current Behavior Hi there! I have problem with logging. Here is a code example:

  // Your code here
module.exports = app => {
  app.log.trace('Some log message')
  app.log.debug({ message: 'Some log message' }, 'Some log message')
  app.log.info('Some log message')

  const err = new Error('Some log message')
  app.log.warn(err, 'Some log message')
  app.log.error(err, 'Some log message')
  app.log.fatal(err, 'Some log message')
}

Expected behavior/code I want to see in terminal at least on of these messages

Actual behaviour I see only these messages:

14:51:20.514Z  INFO probot:

  Welcome to Probot! Go to http://localhost:3000 to get started.

14:51:20.730Z  INFO probot: Forwarding https://smee.io/<my_id>to http://localhost:3000/
14:51:20.734Z  INFO probot: Listening on http://localhost:3000
14:51:21.618Z  INFO probot: Connected https://smee.io/<my_id>

Environment

  • Probot version(s): 7.5.0
  • Node/npm version: Node 8.9.4/npm 5.6.0]
  • OS: OSX 10.14

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ArtyomShaitorcommented, Jan 28, 2019

@JasonEtco it works! thank you

0reactions
JasonEtcocommented, Jan 28, 2019

@ArtyomShaitor you may also be missing your private key, either as a .pem file or the PRIVATE_KEY environment variable.

Read more comments on GitHub >

github_iconTop Results From Across the Web

logging - Python Logger not working - Stack Overflow
The problem is that the logger's level is still set to the default. So the logger discards the message before it even gets...
Read more >
Logging HOWTO — Python 3.11.1 documentation
Basic Logging Tutorial: Logging is a means of tracking events that happen when ... Due to a more serious problem, the software has...
Read more >
How to Get Started with Logging in Python - Better Stack
Logging is an invaluable tool in every developer's toolbox when developing software. It provides a reliable means of recording and tracking ...
Read more >
Python Logging Basics - The Ultimate Guide To Logging
Python Logging Basics. Ultimate Guide to Logging - Your open-source resource for understanding, analyzing, and troubleshooting system logs.
Read more >
Python Logging Guide: The Basics - CrowdStrike
In this guide, we'll introduce you to the default logging module and log levels, and we'll walk through basic examples of how you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found