Log viewer application built with Lumen and VueJS.
This app requires PHP7 to run.
# Clone repo
git clone git@github.com:adhocore/log-viewer.git
# OR
git clone https://github.com/adhocore/log-viewer.git
cd log-viewer
composer install
# Quick Demo
php -S localhost:8080 -t public
# Then it should be available at http://localhost:8080- The app can be configured using
.envfile at the project root root. It is automatically cloned from.env.exampleduring firstcomposer install. Or you can do it manuallycp .env.example .env. - For a production environment, you might want to set the value of
APP_ENVtoproductionandAPP_DEBUGtofalse. LOG_PATHis the directory from where the logs are read. It can be either relative or absolute path. If it is relative then resolved from the root path of this app. The logs files not falling within theLOG_PATHare not read by the app.- Example 1: If you have
LOG_PATH=/var/log, then trying to read/var/www/log.logis forbidden but/var/log/deep/nested/log.logis allowed. - Example 2: If you omit the full path from input in log-viewer UI, then it is resolved from the
LOG_PATHsuch thatmy/log.logwill point to/var/log/my/log.log.
You can run available functional and unit tests like so:
cd this/directory
vendor/bin/phpunit