title: How should I access logger from other methods within the same class?
body: <p>I am trying to add a logger to my ruby app. The way I have it set up at the moment, the logger is created in the initialise method of my class. I then try to access it from other methods within the same class, but I get a scope error, specifically:</p>
  
  <pre><code>undefined local variable or method "logger" (NameError)
  </code></pre>
  
  <p>This refers to my first call to the logger method. How do I access my previously created logger from other methods?</p>
  
  <p>Here is the full code:</p>
  
  <p><a href="https://gist.github.com/anonymous/05e05c374b054accb95cfa9eb125f4e5" rel="nofollow">gist</a></p>