https://github.com/laramate/logger
Automated logging to your configured channels or to the console, depending on the environment.
https://github.com/laramate/logger
laravel logging
Last synced: about 2 months ago
JSON representation
Automated logging to your configured channels or to the console, depending on the environment.
- Host: GitHub
- URL: https://github.com/laramate/logger
- Owner: Laramate
- License: mit
- Created: 2023-05-26T06:49:32.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2026-04-12T11:36:54.000Z (3 months ago)
- Last Synced: 2026-04-12T13:21:29.240Z (3 months ago)
- Topics: laravel, logging
- Language: PHP
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Automated logging to the console or log-channels.
### Send Log messages to your configured channels or to the console, depending on the environment.
---
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:
```php
use Laramate\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.
## Contributing
Feel free to contribute to this package.
## Security
If you've found a bug regarding security please mail [coding@laramate.de](coding@laramate.de) instead of using the issue tracker.
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.