Comments (2)
Generally I consider it bad form to reinvent log rotation in Python. As https://www.structlog.org/en/latest/logging-best-practices.html writes, it's best to write to stdout and then use standard tools for catching & processing log files. For UNIX-like OS that would be syslogd & logrotate.
If you're in an environment that can't use any of that, you always have the escape hatch to log out using standard library logging that has log rotation. But I would consider it only the last resort.
from structlog.
Got it. Thanks.
from structlog.
Related Issues (20)
- `structlog.get_context` breaks from 23.2.0 to 23.3.0 HOT 1
- Add fallback when loading Protocol HOT 1
- Question: how to make timestamps be time-since-application-started? HOT 1
- Unexpected handling of exc_info in structlog v24 when using .exception HOT 1
- merge_contextvars raises a KeyError HOT 29
- Integrating `structlog` with `logot` HOT 3
- Provide an away to turn off padding log level with blanks HOT 6
- `CallsiteParameterAdder` not pickleable HOT 1
- Ignore frames in `_FixedFindCallerLogger` HOT 1
- Why import non-hinted `get_logger` in `__init__.py`? HOT 2
- How to configure different loggers separately? HOT 1
- Processor `logger` argument is None when using Python's logging. HOT 2
- Async logger calls report incorrect call site parameters HOT 1
- structlog+graylog HOT 1
- stacklevel incorrectly passed as extra in structlog.stdlib.render_to_log_kwargs (typo) HOT 2
- Unexpected log level set by structlog.stdlib.recreate_defaults() HOT 2
- Feature request: re-order output columns without explicitly defining them HOT 1
- Git tag 24.2.0 signed with a different key HOT 2
- How to use structlog with logfmt formatted logs?
- Question about configuring show_locals for json output
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 structlog.