Laravel comes with a default Logging library which is built on the top of Monolog Library.

Monolog recognizes the following severity levels - from least severe to most severe: debug, info, notice, warning, error, critical, alert, emergency.

The logging handler for your application is registered in the app/start/global.php. By default the logger is configured to use a single file.

Log::useFiles(storage_path().'/logs/'.$logFile);

However, for your application you might have changed it to create a separate file for each day.

Log::useDailyFiles(storage_path().'/logs/'.$logFile);

For certain reasons if you wish to change the laravel logging level from debug to error here is how you can do it.

/**
 * Register a file log handler.
 *
 * @param string $path
 * @param string $level
 * @return void
 */
public function useFiles($path, 'error');
/**
 * Register a daily file log handler.
 *
 * @param string $path
 * @param int $days
 * @param string $level
 * @return void
 */
public function useDailyFiles($path, 0, 'error');
Comments