Created
April 10, 2018 18:30
-
-
Save viirre/a38e1dd99550634cd189a7e7d60d12ea to your computer and use it in GitHub Desktop.
This file contains 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
<?php | |
/* | |
* We want to implement a logger | |
* | |
* We can have several loggers: 'bugsnag', 'sentry', 'file', 'database', 'redis' | |
* | |
* We want to be able to store which logger we use in our .env file | |
* | |
* Your job: | |
* 1. Create some classes with methods (don't write any code inside methods), so we can switch loggers | |
* 2. Log the string "Using a logger!" with the current logger |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment