Skip to content

Instantly share code, notes, and snippets.

@undertext
Created January 30, 2020 13:38
Show Gist options
  • Save undertext/79f1c086215bd1ce10f06c6312f0f0f5 to your computer and use it in GitHub Desktop.
Save undertext/79f1c086215bd1ce10f06c6312f0f0f5 to your computer and use it in GitHub Desktop.
$logger = new Logger('appLogger');
$logger->pushHandler(new StreamHandler("monolog_php_errors.log"));
$logger->error('This is my error log message from monolog logger');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment