Skip to content

Instantly share code, notes, and snippets.

@viirre
Created April 10, 2018 18:30
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 viirre/a38e1dd99550634cd189a7e7d60d12ea to your computer and use it in GitHub Desktop.
Save viirre/a38e1dd99550634cd189a7e7d60d12ea to your computer and use it in GitHub Desktop.
<?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