wrk-flow / larastrict

Opinionated extension of a Laravel framework to help you build type safe, testable and reusable code.
https://larastrict.com
MIT License
5 stars 2 forks source link

Commands and log #15

Open pionl opened 2 years ago

pionl commented 2 years ago

Problem

When using commands we have actions / services that logs different states. It would be great to prevent logging this to a log file (when using docker all logs are visible to user using stderr) when using command (called by user, not in schedule) and output it directly to user

Problem is detecting if the command was called via artisan.

Current state

At this moment there is partially working solution.

Proposal