Comments (2)
Hello @boonyao1122, sorry for keeping you waiting. Files are written to a new directory, which is by default a pytest session's tempdir:
https://docs.pytest.org/en/latest/tmpdir.html
Each pytest run (i.e. "session") logs are written anew to a different dir:
$ pytest > /dev/null ; ll logs
lrwxrwxrwx 1 aurzenligl aurzenligl 39 Jun 18 02:39 logs -> /tmp/pytest-of-aurzenligl/pytest-3/logs
$ pytest > /dev/null ; ll logs
lrwxrwxrwx 1 aurzenligl aurzenligl 39 Jun 18 02:39 logs -> /tmp/pytest-of-aurzenligl/pytest-4/logs
If user chooses own dir, which is the same during each run, files will get overwritten. It doesn't seem to make sense to append to them, as output would get mixed in a way making it difficult to figure out which run given log line comes from.
Does that answer the question?
from pytest-logger.
Closed due to inactivity.
from pytest-logger.
Related Issues (20)
- Log redirect HOT 3
- Disabling root logger prematurely
- Option --log error in pytest 3.4
- Missing logdir fixture documentation
- Allow relative path in pytest_logger_logdirlink
- Option --logger-logsdir doesn't work well with pytest-xdist HOT 5
- log into separate log files bases on log levels when logged into a single logger HOT 2
- Update setup.py
- Encoding for FileHandler HOT 2
- AttributeError: 'NoneType' object has no attribute '_logcfg' HOT 2
- [help] - log folder and logs file not created HOT 2
- How to config the log formats
- Open logs in append mode HOT 3
- Format from pytest.ini is not used HOT 2
- Possible to set level depending on if -v/-vv/-vvv is set HOT 2
- storing output of failures HOT 2
- using pytest-logger with pytest-rerunfailures plugin HOT 1
- Remove dependency on "py" and "future"
- Add types and py.typed HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytest-logger.