my environment
\nPHP VERSION: 8.1.13\nLARAVEL: 8.83\nLARAVEL WEBSOCKET PACKAGE: ^1.12\nthis is supervisor config which is running websockets:serve command:
[program:laravel-websocket]\nprocess_name=%(program_name)s_%(process_num)02d\ncommand=php /var/www/secure/v2.appio.me/artisan websockets:serve\nautostart=true\nautorestart=true\nstopasgroup=true\nkillasgroup=true\nuser=root\nnumprocs=1\nredirect_stderr=true\nstdout_logfile=/var/www/secure/v2.appio.me/storage/logs/websockets.log\nstopwaitsecs=3600\nfound it..
\nthis link page in document tells that if APP_DEBUG is set to true, then we can see all incoming & outgoing connection request in console when we run php artisan websockets:serve command, but the websockets:serve command has other options as well.
Description:\n Start the Laravel WebSocket Server\n\nUsage:\n websockets:serve [options]\n\nOptions:\n --host[=HOST] [default: \"0.0.0.0\"]\n --port[=PORT] [default: \"6001\"]\n --debug Forces the loggers to be enabled and thereby overriding the app.debug config setting\n -h, --help Display help for the given command. When no command is given display help for the list command\n -q, --quiet Do not output any message\n -V, --version Display this application version\n --ansi|--no-ansi Force (or disable --no-ansi) ANSI output\n -n, --no-interaction Do not ask any interactive question\n --env[=ENV] The environment the command should run under\n -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug\nif php artisan websockets:serve --debug command is run, then everything will be logged, despite the value of APP_DEBUG in .env file or config('app.debug').
-
|
is there any setting which controls whether websocket connections logs will be logged or not. which i might have accidently turned off, due to which i am not getting any logs printed in console or my environment this is supervisor config which is running |
Beta Was this translation helpful? Give feedback.
-
|
found it.. if |
Beta Was this translation helpful? Give feedback.
found it..
this link page in document tells that if
APP_DEBUGis set totrue, then we can see all incoming & outgoing connection request in console when we runphp artisan websockets:servecommand, but thewebsockets:servecommand has other options as well.