Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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