Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lkdocs/45f53e98b09f514b813d to your computer and use it in GitHub Desktop.
Save lkdocs/45f53e98b09f514b813d to your computer and use it in GitHub Desktop.
LaunchKey PHP SDK - Add Logger - Monolog
$logger = new \Monolog\Logger('launchkey', new \Monolog\Handler\ErrorLogHandler());
$config = new \LaunchKey\SDK\Config();
$config->setAppKey("1234567890")
->setSecretKey("supersecretandwayrandomsecretkey")
->setPrivateKeyLocation("/usr/local/etc/launchkey-app-private-key.pem")
->setLogger($logger);
$client = \LaunchKey\SDK\Client::factory($config);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment