laravel-websockets icon indicating copy to clipboard operation
laravel-websockets copied to clipboard

Support custom logger to write logs

Open KingWu opened this issue 3 years ago • 1 comments

Just investigate how to define custom logger to log the correction information into a single file. Found that laravel-websockets do not support to define a custom connection logger / websocket logger.

We wanna to define the laravel logger to handle logging in a centralized way.

Will support custom logger in the future?

KingWu avatar Jan 10 '22 02:01 KingWu

Hello , is suggest creating custom hanlder https://beyondco.de/docs/laravel-websockets/advanced-usage/custom-websocket-handlers and on each event (onOpen, onMessage ...) keep the base functionalities , and you could inject your custom Logger there.

LAGGOUNE-Walid avatar Mar 17 '22 19:03 LAGGOUNE-Walid