Imagine, you run the same code, as a job and as a command. In both scenarios, you would like to have proper output, either through the configured log-channels or the console.
Logger will handle it for you:
use Pretzels\Logger\Logger;
Logger::info('Salz!');
- If the app is on console, Logger will log your message and output it to the console.
- If the app is on the log channel, it will only log your message to the configured channels.
Feel free to contribute to this package.
If you've found a bug regarding security please mail mail@pretzels.dev instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.