Comments (1)
This is not a bug.
You can't pass arbitrary objects to format. If you're logging JSON you're logging JSON as logger.log({'a': 1, 'b': 2})
but the object also needs to be formattable to begin with, which I doubt Lambda context is. Same with function name. https://docs.python.org/3/library/logging.html#formatter-objects
You are misusing a Formatter
object where LoggerAdapter
or Filter
should be used: https://docs.python.org/3/howto/logging-cookbook.html#adding-contextual-information-to-your-logging-output
from fluent-logger-python.
Related Issues (20)
- Missing setLevel in the document HOT 2
- Multiple senders in same context
- _format_msg_json doesn't merge arguments HOT 2
- emit() does not call handleError on exception.
- sock.connect hang
- Proposal: Truly non-blocking handler HOT 2
- Use another augmented assignment statement HOT 1
- using fluent-logger-python with eventlet HOT 5
- Using threading.loca
- Formatting exception handling and fill_missing_fmt_key error
- Formatting message does not work
- ValueError: Recursion limit exceeded, in msgpack HOT 1
- Can this be used with fluent-bit? HOT 2
- The problem with refcount of python object HOT 3
- An unexpected keyword argument 'nanosecond_precision'
- Feature Request: Allow relativeCreated to be formatted as seconds instead of milliseconds HOT 1
- `host` argument value in docker compose setting
- logger.emit() method is not sending the data properly to fluentbit HOT 1
- Master branch is not on latest version HOT 1
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 fluent-logger-python.