69 $this->enabled =
true;
79 $this->enabled =
true;
81 $this->enabled =
false;
98 public function debug( $object ) {
99 return isset($this->logger) && $this->
isEnabled() ? $this->logger->debug($object) :
false;
107 public function info( $object ) {
108 return isset($this->logger) && $this->
isEnabled() ? $this->logger->info($object) :
false;
116 public function warn( $object ) {
117 return isset($this->logger) && $this->
isEnabled() ? $this->logger->warn($object) :
false;
126 return isset($this->logger) && $this->
isEnabled() ? $this->logger->error($object) :
false;
135 return isset($this->logger) && $this->
isEnabled() ? $this->logger->fatal($object) :
false;
setEnabled( $enabled)
Enable or disable logging.
fatal( $object)
Log fatal message.
warn( $object)
Log warn message.
setLogger( $logger)
Set Logger.
error( $object)
Log error message.
info( $object)
Log info message.
debug( $object)
Log debug message.
__construct()
Constructor.
isEnabled()
Is logging enabled?