title: Can I use static class for my Logger?
body: <p>Recently I have been told that static class/methods are evil.</p>
  
  <p>Take for example my class Logger:</p>
  
  <pre><code>class Logger{
     private static $logs = array();
     public static function add($msg){
        self::$logs[]=$msg;
     }
  
     public static function echo(){
         print_r(self::$logs);
     }
  }
  </code></pre>
  
  <p>I can use whenever i want in my appliaction like this:</p>
  
  <pre><code>Logger::add('My log 1');
  </code></pre>
  
  <p>But reading this developers:</p>
  
  <ul>
  <li><a href="http://misko.hevery.com/2008/12/15/static-methods-are-death-to-testability/" rel="noreferrer">http://misko.hevery.com/2008/12/15/static-methods-are-death-to-testability/</a></li>
  </ul>
  
  <p>That Logger class doesn't seem so good.</p>
  
  <p>So: Can I use it statically or I should avoid it at any cost?</p>