Comments (5)
Unfortunately, no. How are you connecting to it via other tools?
from log4mongo-python.
Ok, I am able to connect via URI. Now error is log4mongo/handlers.py", line 300, in flush_to_mongo
self.handleError(self.last_record) #handling the error on flush
from log4mongo-python.
Please post the complete stack trace.
from log4mongo-python.
BufferedMongoHandler(host=uri,
#username='',
#password='',
database_name='mydb',
collection='logs',
authentication_db='mydb',
capped=True,
buffer_size=1000, # buffer size.
buffer_periodical_flush_timing=60.0, # periodical flush every 60 seconds
buffer_early_flush_level=logging.CRITICAL)
able to login. is there way to use two different collections for two set of logs.
from log4mongo-python.
You can define to handlers.
Each one should write to a collection.
from log4mongo-python.
Related Issues (20)
- OperationFailure when trying to connect to an authenticated database
- _connect error about authentication HOT 4
- Couldn't find index page for 'pytest-runner' (maybe misspelled?) HOT 4
- logger.info HOT 2
- Should I set reuse=False when pymongo's fork unsafety is concerned?
- Support MongoDB URI format
- version 1.6.2 tag? HOT 2
- Can log4mongo be configured by logging config file? HOT 3
- cannot install via pip without internet access HOT 1
- BufferedMongoHandler (with periodic flushing enabled) can't be initialized outside of main-thread HOT 10
- Remove support for pymongo2 HOT 3
- Connection error with Mongo Atlas HOT 11
- General question HOT 1
- Pymongo has removed authenticate method in Database class but log4mongo is still using it which cause exception. HOT 1
- support pymongo connecting in background
- PyPi version does not reflect code HOT 1
- how to log to file and as well to mongodb HOT 1
- how to log connection error HOT 3
- Cannot use MongoClient after close 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 log4mongo-python.