Created
April 1, 2015 19:55
-
-
Save lkdocs/45f53e98b09f514b813d to your computer and use it in GitHub Desktop.
LaunchKey PHP SDK - Add Logger - Monolog
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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