Comments (8)
It is most likely because you didnt disable the scopes on the main ones:
http://sandbox.dereuromark.de/pages/best-practices#logging
from cakephp-databaselog.
Should I disable the scopes in the app.php file? I am following your setup code:
You can simply modify the existing config entries in your config/app.php:
'Log' => [
'debug' => [
'className' => 'DatabaseLog.Database'
],
'error' => [
'className' => 'DatabaseLog.Database'
],
],
from cakephp-databaselog.
try it. helped me.
from cakephp-databaselog.
I get a RunTime error - Could not load class debug.
But with the following code everything works perfectly
'Log' => [
'debug' => [
'className' => 'DatabaseLog.Database',
],
],
from cakephp-databaselog.
Maybe the example isnt clear, you should only add
'scopes' => false,
into it, not completely replace the config..
from cakephp-databaselog.
Yes of course. This produces duplicate logging:
'Log' => [
'debug' => [
'className' => 'DatabaseLog.Database',
'scopes' => false,
],
'error' => [
'className' => 'DatabaseLog.Database',
'scopes' => false,
]
],
If I add another log level, the log is written 3 times instead of twice. But if I leave only one log level (debug) for example, I get only one. Basically scopes => false doesn't seem to affect. Could be a bug that was fixed in versions > 3.3.16?
from cakephp-databaselog.
Of course, this is a more recent fix for sure, you should always be using the latest 3.x version, always.
from cakephp-databaselog.
I've looked at the updates and since this project will go live very soon I'm not keen of updating at this point. But will definitely update in the near future. Thank you for your help and service!
from cakephp-databaselog.
Related Issues (18)
- Add monitor shell command HOT 1
- Fix postgres compatability
- Building a dashboard HOT 1
- Missing route HOT 2
- Unit-Testing doesn't seem to work HOT 2
- Some fatal/syntax errors do not log HOT 9
- use datetime instead of timestamp HOT 1
- Deprecated errors HOT 2
- Fatal error on logging with uploads HOT 7
- Add summary field for paginated filter backend
- Missing Controller Error HOT 4
- DatbaseLogsTable::ensureTables() causes app to crash in environments without test connection HOT 5
- Cake 4.3 Routing deprecation HOT 1
- New release HOT 2
- Three debug messages are produced by the plugin tests HOT 1
- Bad Gateway HOT 2
- working with AuthComponent HOT 3
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 cakephp-databaselog.