My logger keeps getting destructed while I am trying to log errors and exceptions
<p>I am just now switching back to PHP after enterprise open-source Java development for three years.  Now I am tasked with updating our platform for better logging.</p>

<p>I now understand better how the PHP object lifecycle regarding when objects are garbage collected and have trapped my problem.  I am trying to invoke the logger after its already been destructed, when a fatal error occurs.  My question is, how do I fix this?  How can I stop an object from being destroyed until the end of the request?  </p>

<p>Ideally I would like to keep this logger around in memory like I would in Java but is that even possible with PHP?  Is there anything shared between two different threads or requests?</p>
