Skip to content

Instantly share code, notes, and snippets.

@ngugijames
Last active November 2, 2017 09:51
Show Gist options
  • Save ngugijames/8ed3544d3c7ae9180042b40fc2bc9ddf to your computer and use it in GitHub Desktop.
Save ngugijames/8ed3544d3c7ae9180042b40fc2bc9ddf to your computer and use it in GitHub Desktop.
find L3 log usages and replace with L5 equivalents using PHPStorm
<?php
//Search For:
Log::(.*?)\((.*[\(\)]*)\);
//Replace with
Log::info("$1", $2);
// Replaces Log::api_unreachable(..) with something like Log::info("api_unreachable", ..);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment