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.

LOG formatting on 2.12.1

See original GitHub issue

I’m submitting a …

  • bug report
  • feature request
  • support request => Please do not submit support request here, see note at the top of this template.

What is the current behavior?

I’m migrating from python 2.7 to python 3.7 After running python -m pytest .... and generating allure report I’ve seen that the logs contain bash formatting INFO  test_X:test_X.py:70 CIAO CIAO

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem

LOGGER.info("CIAO CIAO")

What is the expected behavior?

I would like that the log appears as: INFO test_X:test_X.py:70 CIAO CIAO

At the moment I modified python -m pytest .... -color=no in order to get the expected output

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

$ pip freeze | grep -E ‘pytest|allure’ allure-pytest==2.8.0 allure-python-commons==2.8.0 pytest==5.1.1

Allure version: allure-2.12.1 Python 3.7.4

Other information

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:15 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ric79commented, Oct 30, 2019

I upgraded because the issue was solved on latest release. The hint was about controlling the output. You can also remove color from pytest commandline

0reactions
shreyasjoshi9commented, Feb 10, 2021

This is still not working for me. Please help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Log4j 2.12.2 - Apache Logging Services
The Log4j API provides many more logging methods than SLF4J. 4. In addition to the “parameterized logging” format supported by SLF4J, the Log4j...
Read more >
Log Formats | CockroachDB Docs
Log Formats · Format crdb-v1. This is the legacy file format used from CockroachDB v1. · Format crdb-v1-count. This is an alternative, backward-compatible...
Read more >
logging-format-interpolation / W1202 - Pylint 2.16.0-dev ...
Used when a logging statement has a call form of "logging.<logging method>(format_string.format(format_args...))". Use another type of string formatting instead ...
Read more >
What is Apache Log4J Vulnerability and How to Prevent It?
Log4j Java library's role is to log information that helps applications run ... Apache Log4j2 2.0 through 2.12.1 and 2.13.0 through 2.15.0 JNDI...
Read more >
3 Configuring WebLogic Logging Services - Oracle Help Center
You can configure the logging output to receive log messages for specific events in Oracle ... Log4j defines layouts to control the format...
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