The constants below are always available as part of the PHP core.
flags for
openlog()
LOG_CONS
(int )
LOG_NDELAY
(int )
LOG_ODELAY
(int )
LOG_NOWAIT
(int )
LOG_PERROR
(int )
STDERR .
LOG_PID
(int )
facility for
openlog()
LOG_AUTH
(int )
Note: Use
LOG_AUTHPRIVinstead when available.
LOG_AUTHPRIV
(int )
LOG_CRON
(int )
LOG_DAEMON
(int )
LOG_KERN
(int )
LOG_LOCAL0
(int )
Not available on Windows.
LOG_LOCAL1
(int )
Not available on Windows.
LOG_LOCAL2
(int )
Not available on Windows.
LOG_LOCAL3
(int )
Not available on Windows.
LOG_LOCAL4
(int )
Not available on Windows.
LOG_LOCAL5
(int )
Not available on Windows.
LOG_LOCAL6
(int )
Not available on Windows.
LOG_LOCAL7
(int )
Not available on Windows.
LOG_LPR
(int )
LOG_MAIL
(int )
LOG_NEWS
(int )
LOG_SYSLOG
(int )
LOG_USER
(int )
LOG_UUCP
(int )
priority for
syslog()
The priority constants are listed from urgent, to debug messages.
LOG_EMERG
(int )
LOG_ALERT
(int )
LOG_CRIT
(int )
LOG_ERR
(int )
LOG_WARNING
(int )
LOG_NOTICE
(int )
LOG_INFO
(int )
LOG_DEBUG
(int )
types for
dns_get_record()
DNS_ANY
(int )
libresolv between platforms this is not guaranteed.
The slower DNS_ALL will collect all records more reliably.
DNS_ALL
(int )
DNS_A
(int )
DNS_AAAA
(int )
DNS_A6
(int )
DNS_CAA
(int )
Not available on Windows.
DNS_CNAME
(int )
DNS_HINFO
(int )
DNS_MX
(int )
DNS_NAPTR
(int )
DNS_NS
(int )
DNS_PTR
(int )
DNS_SOA
(int )
DNS_SRV
(int )
DNS_TXT
(int )
FYI, on windows, the vlaues for LOG_* "log-levels" are as followed:
<?php
namespace Test;
include 'vendor/autoload.php';
use Psr\Log\LogLevel;
$log_levels = array(
LogLevel::EMERGENCY => LOG_EMERG,
LogLevel::ALERT => LOG_ALERT,
LogLevel::CRITICAL => LOG_CRIT,
LogLevel::ERROR => LOG_ERR,
LogLevel::WARNING => LOG_WARNING,
LogLevel::NOTICE => LOG_NOTICE,
LogLevel::INFO => LOG_INFO,
LogLevel::DEBUG => LOG_DEBUG,
);
print_r($log_levels);
/*
prints:
Array
(
[emergency] => 1
[alert] => 1
[critical] => 1
[error] => 4
[warning] => 5
[notice] => 6
[info] => 6
[debug] => 6
)
*/