diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..27f24d1 --- /dev/null +++ b/.env.example @@ -0,0 +1,6 @@ +# php-bsrutils environment variables +# This library only needs logging configuration if you override the defaults. +# Most applications define their own logging config, making this optional. + +# Optional: Override default log file location +# LOG_FILE=/var/log/app/log.txt diff --git a/.gitignore b/.gitignore index 7c5d29b..ab30ff7 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ vendor/ *.swp output composer.lock +.env diff --git a/config/configuration.local.php b/config/configuration.local.php new file mode 100644 index 0000000..f91b5aa --- /dev/null +++ b/config/configuration.local.php @@ -0,0 +1,15 @@ + array( + 'file' => realpath(dirname(__FILE__) . '/..') . '/log/log.txt', + 'format' => '%ip% - [%date%] - %status% %error% - %time% - %func%', + 'verbosity' => Logger::NORMAL, + ), +); diff --git a/config/configuration.logger.normal.php b/config/configuration.logger.normal.php new file mode 100644 index 0000000..f042047 --- /dev/null +++ b/config/configuration.logger.normal.php @@ -0,0 +1,13 @@ + array( + 'file' => realpath(dirname(__FILE__) . '/..') . '/log/log.txt', + 'format' => '%ip% - [%date%] - %status% %error% - %time% - %func%', + 'verbosity' => Logger::NORMAL, + ), + ); diff --git a/config/configuration.logger.quiet.php b/config/configuration.logger.quiet.php new file mode 100644 index 0000000..14399ab --- /dev/null +++ b/config/configuration.logger.quiet.php @@ -0,0 +1,13 @@ + array( + 'file' => realpath(dirname(__FILE__) . '/..') . '/log/log.txt', + 'format' => '%ip% - [%date%] - %status% %error% - %time% - %func%', + 'verbosity' => Logger::QUIET, + ), + ); diff --git a/config/configuration.logger.verbose.php b/config/configuration.logger.verbose.php new file mode 100644 index 0000000..8a42d11 --- /dev/null +++ b/config/configuration.logger.verbose.php @@ -0,0 +1,13 @@ + array( + 'file' => realpath(dirname(__FILE__) . '/..') . '/log/log.txt', + 'format' => '%ip% - [%date%] - %status% %error% - %time% - %func%', + 'verbosity' => Logger::VERBOSE, + ), + );