Comments (3)
Sorry for the late response here, busy with work and house and life and all that!
That's actually a very good point, I think I just got used to doing the whole stack log channel with db+daily so I could always fall back to a log file. However, that means that I would double store all logging.
I'll take a look at this, need to make sure this thing still works on the newest Laravel updates anyways ;)
Thank you for the feedback, much appreciated!
from laravel-log-to-db.
Hi @joostdebruijn,
I'm working on adding a Monolog Logger that basically just adds the log event + exception info to PHP's native error_log if writing to DB fails. This would require a working error_log setting in PHP (obviously), but other than that it should be pretty straightforward.
https://github.com/danielme85/laravel-log-to-db/blob/v3.1/src/LogToDbCustomLoggingHandler.php
Need to test this in practice, make sure we don't get any of those magical/wonderful infinite loops 👍
from laravel-log-to-db.
This is now added in v3.0.2, thank you for the suggestion!
from laravel-log-to-db.
Related Issues (20)
- "Cleanup" functions not working when using mongoDB HOT 1
- Add Console command for log pruning
- \Log::error not work HOT 3
- Observers are not working HOT 5
- Array to string conversion on error logging HOT 4
- Add Lumen support HOT 2
- Laravel 7: Throwable HOT 3
- Laravel 6. Serialization of 'Closure' is not allowed HOT 2
- Log Cleaner does not read collection setting HOT 3
- Internal migration HOT 6
- Does not work correctly with Laravel Octane HOT 3
- Url issue HOT 1
- Wrong method check HOT 1
- Use database loging as optional? HOT 3
- getContextAttribute requires a value HOT 2
- Error on Lumen 9.1.2 and PHP 8.1 HOT 3
- Compatibility with Laravel 10.x and Monolog 3.x HOT 2
- Infinite circular log writes on database exception inside the job HOT 2
- Release for Laravel 11 HOT 4
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 laravel-log-to-db.