Wrapper für Zend_Log
German Text, english text below.
Für ein Projekt war es notwendig auf das Zend Framework zurückzugreifen. Ansich ist das ja keine schlechte Sache, wenn Zend_Log mir nicht zuwenig Informationen liefern würde. Daher habe ich einen Wrapper für Zend_Log geschrieben. Der Wrapper besorgt zusätzlich noch zu den normalen Log-Nachrichten benutzerdefinierte Informationen (Zum Beispiel den Browser, die IP, die akzeptierten Sprache des Clients. Dies geschieht entweder bei bestimmten ErrorLeveln, oder auf Wunsch. Natürlich kann diese Funktionalität auch abgeschaltet werden.
Da es sich um ein Kundenprojekt handelt, werden auch interne Infos über den Benutzer geholt, wenn dieser eingeloggt ist (getInternalUserInformations) . Solltet ihr den Wrapper einsetzen, würde es Sinn machen diese Funktion anzupassen, oder deren Inhalt, bzw Aufruf auszukommentieren (in Zeile 202).
English text, german text above.
For one of my projects i needed the Zend Framework. Of course, that’s not a bad thing at all, but Zend_Log sends much too less informations to my logfiles. That’s the reason why i wrote this wrapper for Zend_Log. The Wrapper provides information about the current visitor (like browser, ip, accapted languages etc). This happens automaticly for some error levels, or at your will. Of course, you can disable it, if you don’t need that informations.
Because it’s a customer projects, the wrapper class also gets some project relevant informations of a current session, you should comment out the call of getInternalUserInformations at line 202 if you don’t need it.
Tags: logging, php, wrapper, zend framework, Zend_Log










