Comments (5)
@techoner @Nekotoxin
from django-orm-adapter.
@leohahn it's here:
from django-orm-adapter.
Yes, but this variable is not used anywhere. I tried setting this to true but nothing changes for logging. Where is this variable used?
from django-orm-adapter.
from django-orm-adapter.
@leohahn
You can control the log by setting logging config in settings.py. You can refer to django docs.
Here is an example to log info and upper level message to console:
# settings.py
LOGGING = {
"version": 1,
"disable_existing_loggers": False,
"formatters": {
"casbin_formatter": {
"format": "{asctime} {message}",
"style": "{",
}
},
"handlers": {
"console": {
"level": "INFO",
"class": "logging.StreamHandler",
"formatter": "casbin_formatter",
},
},
"loggers": {
"casbin_adapter": {
"handlers": ["console"],
"level": "INFO",
},
},
}
from django-orm-adapter.
Related Issues (9)
- Status/need help? HOT 5
- Replace Travis CI with GitHub Actions and setup semantic-release HOT 3
- Casbin lib incompatibility HOT 2
- initialize_enforcer with other DB_ALIAS HOT 6
- bug: CASBIN_DB_ALIAS not work HOT 4
- `semantic-release-pypi@^3.0.0` uses the `pyproject.toml` based build system interface, if a `pyproject.toml` file exists HOT 3
- Fix the Travis CI build error HOT 3
- in pypi i can't find this package, this repo has another name? HOT 7
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 django-orm-adapter.