Comments (7)
Yes it is.
A lot of extensions use the old devlog api and it is still part of TYPO3. See GeneralUtility::devLog.
The devlog was removed in TYPO3 10. When we drop the support for TYPO3 9.5, than we should remove the old devlog system.
from typo3-mklog.
Wouldn't it be better to migrate to Monolog which already takes care of this type if issue?
https://github.com/Seldaek/monolog/blob/master/src/Monolog/Formatter/GelfMessageFormatter.php#L99-L101
I'm also aware that there is a TYPO3 extension which integrates monolog into it.
https://docs.typo3.org/typo3cms/extensions/logging/1.0.0/
from typo3-mklog.
There is nothing wrong to use the georgringer/logging extension for logging.
Mklog is a parallel to it, inspired by the old devlog extension.
The use of monolog would be nice, but a lot of work and you could use georgringer/logging instead.
from typo3-mklog.
So what would be the advantage of this extension? Maybe we can add it to the Readme why or better when they should use this extension rather than the logging extension from georgringer?
from typo3-mklog.
The georgringer/logging currently is just a concept and only compatible with TYPO3 8.
To use this we has to use its own monolog manager, instead the devlog or typo3 logger.
This can be very useful for special projects!
Mklog is a generic logging extension, compatible to TYPO3 9, uses the old DevLog-Hook and the new TYPO3-Logger.
So all logs are included, regardless of whether a extension uses the devlog or the typo3 core loging. No special manager class has to be implemented, just the typo3 core.
Mklog writes all the logs (your own, from the core and all other third party extensions) into the database, apart from critical messages that are sent directly to graylog. Later in the background a scheduler processes the logs (send per mail, or to graylog) to not disturb the frontend request too much.
It is certainly a good idea to port the processes to use the awesome monolog.
But currently this would be too much work.
I agree that we should include some more information about what mklog really does in the documentation/readme.
from typo3-mklog.
Thank you for this clear explanation, now understand this usecase a little bit better.
Just one more question, is the devlog still relevant in favor of the new logging system which is shipped with the core?
from typo3-mklog.
New data parser to reduce the size of extra data on watchdog transport (gelf/graylog) was added.
Release is pending.
from typo3-mklog.
Related Issues (17)
- The watchdog sends mails when there are no messages HOT 1
- log table cleanup broken
- remove return type declarations and support php 5.6 again
- Cleanup, Autoloading, PHPLint, ...
- extract table cleanup process while logging
- Add support for TYPO3 10 LTS HOT 1
- PHP Error after update to version 10.0.1
- make extension compatible to TYPO3 7.6 HOT 7
- Invalid default value for 'tx_mklog_lastrun' HOT 1
- BE module broken with rn_base 1.16.7
- Severity is not transported to gelf
- Delete devlog entries when deleting pages HOT 1
- SQL-Fehler nach Installation HOT 2
- Add support for TYPO3 8 LTS
- TYPO3 9.5 compatibility
- Fieldvalidation in SchedulerFieldProviderWatchDog does not work in TYPO3 9
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 typo3-mklog.