1

Is there any global configuration option to disable all logging?

I don't just mean disabling the logging of errors. I mean actually disabling writing to the file when Log:: is called.

Chris Harrison
  • 5,512
  • 3
  • 28
  • 36

1 Answers1

4

If you don't want to write to a log file you can simply comment out the following line in file start/global.php

//Log::useFiles(storage_path().'/logs/laravel.log');

From this point on, your log file will never be updated.

Idan Gozlan
  • 3,173
  • 3
  • 30
  • 47
enchance
  • 29,075
  • 35
  • 87
  • 127