cepdnaclk / portal.ce.pdn.ac.lk

Internal and Public web service provider of the Department of Computer Engineering
MIT License
2 stars 1 forks source link

Check and integrate the debug logs on every controller action + Discord Webhook integration for critical logs #97

Open NuwanJ opened 1 week ago

NuwanJ commented 1 week ago

Code block:

Log::error('title: '.$e->getMessage());

https://laravel.com/docs/8.x/logging


Discord logs are only required for higher-level errors.

Discord Webhood integration: This is the example implementation: https://github.com/cepdnaclk/smart-inventory-management-system/commit/e2dfa47e98bbe290faf64c96d36aba07dabbbf8f

Add LOG_DISCORD_WEBHOOK_URL into the .env.example file as well. Reach @NuwanJ to created a test Discord Webhook URL for you.

NuwanJ commented 4 days ago

Purpose is similar to this:

Image