Logging not working
See original GitHub issueBug 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:
- Created 5 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@JasonEtco it works! thank you
@ArtyomShaitor you may also be missing your private key, either as a
.pem
file or thePRIVATE_KEY
environment variable.