Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1430717
SysLogSender.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
760 B
Referenced Files
None
Subscribers
None
SysLogSender.php
View Options
<?php
namespace
Liuggio\StatsdClient\Sender
;
Class
SysLogSender
implements
SenderInterface
{
private
$priority
;
public
function
__construct
(
$priority
=
LOG_INFO
)
{
$this
->
priority
=
$priority
;
}
/**
* {@inheritDoc}
*/
public
function
open
()
{
syslog
(
$this
->
priority
,
"statsd-client-open"
);
return
true
;
}
/**
* {@inheritDoc}
*/
function
write
(
$handle
,
$message
,
$length
=
null
)
{
syslog
(
$this
->
priority
,
sprintf
(
"statsd-client-write
\"
%s
\"
%d Bytes"
,
$message
,
strlen
(
$message
)));
return
strlen
(
$message
);
}
/**
* {@inheritDoc}
*/
function
close
(
$handle
)
{
syslog
(
$this
->
priority
,
"statsd-client-close"
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sat, May 16, 19:27 (5 h, 17 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b4/ab/de4adb9ac4ef2994d903873c52f0
Default Alt Text
SysLogSender.php (760 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment