# Class Logger

Basic logger for OpenCloud which extends FIG's PSR-3 standard logger.

  OpenCloud\Common\Log\AbstractLogger implements OpenCloud\Common\Log\LoggerInterface
  OpenCloud\Common\Log\Logger

Namespace: OpenCloud\Common\Log
Link: https://github.com/php-fig/log
Located at OpenCloud/Common/Log/Logger.php

Methods summary
`public` | # `__construct( mixed $enabled = false )`
`public static` | # `newInstance( )`
`public `OpenCloud\Common\Log\Logger`` | # `setEnabled( boolean $enabled )` Enable or disable the debug class. Enable or disable the debug class. #### Parameters $enabled `boolean` $enabled #### Returns ``OpenCloud\Common\Log\Logger``
`public boolean` | # `isEnabled( )` Is the debug class enabled? Is the debug class enabled? #### Returns `boolean`
`public` | # `setOptions( array $options = array() )` Set an array of options. Set an array of options. #### Parameters $options `array` $options
`public array` | # `getOptions( )` Get all options. Get all options. #### Returns `array`
`public` | # `setOption( string $key, string $value )` Set an individual option. Set an individual option. #### Parameters $key `string` $key $value `string` $value
`public string|null` | # `getOption( string $key )` Get an individual option. Get an individual option. #### Parameters $key `string` $key #### Returns `string|null`
`public null` | # `log( string $level, string $message, array $context = array() )` Outputs a log message if necessary. Outputs a log message if necessary. #### Parameters $level `string` $logLevel $message `string` $message $context `string` $context #### Returns `null`
`public` | # `deprecated( mixed $method, mixed $new )`

Methods inherited from OpenCloud\Common\Log\AbstractLogger
`alert(), critical(), debug(), emergency(), error(), info(), notice(), warning()`