mirror of
https://github.com/Yubico/yubikey-val.git
synced 2025-03-16 03:29:18 +01:00
ops, ykval-log file needed as well.
This commit is contained in:
parent
a839954882
commit
76f35dd580
21
ykval-log.php
Normal file
21
ykval-log.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
class Log
|
||||
{
|
||||
|
||||
function __construct($name='ykval')
|
||||
{
|
||||
$this->name=$name;
|
||||
}
|
||||
function log($priority, $message, $arr=null){
|
||||
if (is_array($arr)) {
|
||||
foreach($arr as $key=>$value){
|
||||
$message.=" $key=$value ";
|
||||
}
|
||||
}
|
||||
syslog($priority, $this->name . ':' . $message);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user