Download the PHP package bbrist/laravel-console-logger without Composer

On this page you can find all versions of the php package bbrist/laravel-console-logger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-console-logger

laravel-console-logger

The laravel-console-logger package is a helper package designed to allow for more in-depth console logging

By default, adding this package to your project will automatically (via the ServiceProvider) start diverting logs (i.e. Log::info() statements) to console output. The log level that is output can be changed using the verbosity flags for the Artisan console (i.e. -v, -vv, -vvv, -q).

With the default configuration, -q will output nothing, no verbosity args will output error and higher, -v will output warning and higher, -vv will output info and higher, and -vvv will output all logs to console.

The config/logging.php configuration can be used to alter the default configuration. By default, notice, error, critical, alert, and emergency levels are logged to the laravel.log file in addition to the console (even if -q is specified). To add/remove levels to include in the laravel.log file, just set/modify the console.logMethods value in the config/logging.php file.

To log all logs to file, regardless of whether they are logged to console, you can set/modify the console.logToFile value to true in the config/logging.php file.

Force Log to File

The Log::logToFile() method will force any following logs to log to laravel.log. You can explicitly set this status to true or false by providing the value as a parameter (i.e. Log::logToFile(false)).

This can be useful when you want to ensure that a chunk of code is logged to laravel.log regardless of where/how it's executed (dependent on the value of env('LOG_LEVEL')).

For example:


All versions of laravel-console-logger with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
laravel/framework Version ^9.0
symfony/console Version ^v6.1.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package bbrist/laravel-console-logger contains the following files

Loading the files please wait ....