ARCANEDEV / LogViewer

:page_with_curl: Provides a log viewer for Laravel
MIT License
2.37k stars 335 forks source link

Add custom logs path #394

Closed chiendv closed 2 years ago

chiendv commented 3 years ago

How can I add custom logs path?

Let image I have admin and api in the same server, I installed your plugin in admin and it working very good, I want it also monitor the logs file of api at the same place.

Thank you!

vivekwaah commented 3 years ago

Adding to that, I would like to have a feature of dropdown with the different channels which is registered in logging.php > channel[].

svowl commented 3 years ago

Heavy plus to this feature!

pohvietnam commented 3 years ago

Hi guys,

I found a simple way to make LogViewer can read multi paths.

You can use symbolic link to make logs directory to sample place like this

mkdir /data/logs
#chmod & chown if need
ln -s /data/logs /var/www/site1/storage/
ln -s /data/logs /var/www/site2/storage/
arcanedev-maroc commented 2 years ago

You can specify the storage location by editing the config file or use the setPath() method in LogViewer instance