Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96057114
PhutilConsoleLogLine.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Dec 22, 04:46
Size
457 B
Mime Type
text/x-php
Expires
Tue, Dec 24, 04:46 (2 d)
Engine
blob
Format
Raw Data
Handle
23105928
Attached To
rPHU libphutil
PhutilConsoleLogLine.php
View Options
<?php
abstract
class
PhutilConsoleLogLine
extends
PhutilConsoleView
{
private
$kind
;
private
$message
;
abstract
protected
function
getLogLineColor
();
public
function
__construct
(
$kind
,
$message
)
{
$this
->
kind
=
$kind
;
$this
->
message
=
$message
;
}
protected
function
drawView
()
{
$color
=
$this
->
getLogLineColor
();
return
tsprintf
(
"<bg:"
.
$color
.
">** %s **</bg> %s
\n
"
,
$this
->
kind
,
$this
->
message
);
}
}
Event Timeline
Log In to Comment