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 formatting

See original GitHub issue

Currently our default logging format is as follows:

%(name)s - %(levelname)s - %(message)s

This looks like the following:

distributed.scheduler - INFO - Starting worker compute stream, tcp://100.96.10.12:38938
distributed.scheduler - INFO - Register tcp://100.96.9.13:36728
distributed.scheduler - INFO - Starting worker compute stream, tcp://100.96.9.13:36728

Should we change this? Options available here: https://docs.python.org/3/library/logging.html#logrecord-objects

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
bachshcommented, Jul 26, 2020

Issued a PR here (probably the tiniest PR ever)

0reactions
bachshcommented, Jul 5, 2020

OK cool, can you guys think of something else that should be included in the log by default while we’re at it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

logging — Logging facility for Python — Python 3.11.1 ...
A Formatter can be initialized with a format string which makes use of knowledge of the LogRecord attributes - such as the default...
Read more >
How to properly format the python logging formatter?
I try to format the way my Python logging formatter outputs strings. I wrote a minimalistic example to show the problem:
Read more >
Logging in Python - Real Python
Learn why and how to get started with Python's powerful logging module to meet the needs ... The Logging Module; Basic Configurations; Formatting...
Read more >
What is the best string formatting technique for logging in ...
What is the best string formatting technique for logging in Python? ; printf-style, % operator, oldschool. # example with %s format specifier ...
Read more >
Log Formats – a (Mostly) Complete Guide - Graylog
A log format is a structured format that allows logs to be machine-readable and easily parsed. This is the power of using structured...
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