lithium\analysis\logger\adapter\Syslog::__construct()
Constructor. Configures the Syslog
adapter instance with the default settings. For
more information on these settings, see the documentation for tthe openlog()
function.
Parameters
-
array
$config
Available configuration settings for this adapter:
'identity'
string: The identity string to be attached to each message in the system log. This is usually a string that meaningfully identifies your application. Defaults tofalse
.'options'
integer: The flags to use when opening the log. Defaults toLOG_ODELAY
.'facility'
integer: A flag specifying the program to use to log the messages. See theopenlog()
documentation for more information. Defaults toLOG_USER
.
Returns
voidLinks
Source
public function __construct(array $config = []) {
$defaults = ['identity' => false, 'options' => LOG_ODELAY, 'facility' => LOG_USER];
$this->_autoConfig($config + $defaults, []);
$this->_autoInit($config);
}