How to initialize logging class in my another php class?
===

I am writing a class in php having several functions

I have another Class with the name of logging having public function lwrite();
<pre>
class abc{
function a(){}
function b(){}
function c(){}
}
</pre>

Now i want to do logging in every function of the class to see what is happening in each function one way is to create instance of logging in each function a,b,c. I want to work with single instance of logging. I have tried to do something in __constructor function.

like 

<pre>
function __construct(){
$this-logger = new logging();
}
</pre>

but this does not works. How can i make it work. I know i am missing the basics can someone explain.