| Package | com.daveoncode.logging |
| Class | public class LogRecord |
| Property | Defined by | ||
|---|---|---|---|
| category : String
Log's category (qualified class name which has logged the message)
| LogRecord | ||
| columns : Array [static][read-only]
Array of LogRecord columns labels
| LogRecord | ||
| date : String
Log's date
| LogRecord | ||
| level : String
Severity level
| LogRecord | ||
| message : String
Log's text message
| LogRecord | ||
| time : String
Log's time (hh:mm:ss)
| LogRecord | ||
| Method | Defined by | ||
|---|---|---|---|
|
LogRecord(level:String = "", date:String = "", time:String = "", category:String = "", message:String = "")
Constructor function of LogRecord class.
| LogRecord | ||
|
getDataGridColumns(headers:Vector = null):Array
[static]
Returns an array of DataGridColumn objects that will be used by a DataGrid
| LogRecord | ||
|
toString():String
Converts LogRecord to a String by joining all the porperties with LogRecord.SEPARATOR constant
| LogRecord | ||
| Constant | Defined by | ||
|---|---|---|---|
| CATEGORY_COLUMN : String = "category" [static]
A constant which defines the value of the CATEGORY option
| LogRecord | ||
| DATE_COLUMN : String = "date" [static]
A constant which defines the value of the DATE option
| LogRecord | ||
| LEVEL_COLUMN : String = "level" [static]
A constant which defines the value of the LEVEL option
| LogRecord | ||
| MESSAGE_COLUMN : String = "message" [static]
A constant which defines the value of the MESSAGE option
| LogRecord | ||
| SEPARATOR : String = " " [static]
A constant which defines the separator used to divide columns
| LogRecord | ||
| TIME_COLUMN : String = "time" [static]
A constant which defines the value of the TIME option
| LogRecord | ||
| category | property |
category:String [read-write]Log's category (qualified class name which has logged the message)
Implementation public function get category():String
public function set category(value:String):void
| columns | property |
columns:Array [read-only]Array of LogRecord columns labels
Implementation public static function get columns():Array
| date | property |
date:String [read-write]Log's date
Implementation public function get date():String
public function set date(value:String):void
| level | property |
level:String [read-write]Severity level
Implementation public function get level():String
public function set level(value:String):void
| message | property |
message:String [read-write]Log's text message
Implementation public function get message():String
public function set message(value:String):void
| time | property |
time:String [read-write]Log's time (hh:mm:ss)
Implementation public function get time():String
public function set time(value:String):void
| LogRecord | () | constructor |
public function LogRecord(level:String = "", date:String = "", time:String = "", category:String = "", message:String = "")Constructor function of LogRecord class.
Parameterslevel:String (default = "") |
|
date:String (default = "") |
|
time:String (default = "") |
|
category:String (default = "") |
|
message:String (default = "") |
| getDataGridColumns | () | method |
public static function getDataGridColumns(headers:Vector = null):ArrayReturns an array of DataGridColumn objects that will be used by a DataGrid
Parametersheaders:Vector (default = null) — A Vector of String representing DataGrid's headers (default to null)
|
Array — Array
|
— Throw if the Vector's length doesn't match with LogRecord's columns length
|
| toString | () | method |
public function toString():StringConverts LogRecord to a String by joining all the porperties with LogRecord.SEPARATOR constant
ReturnsString — String
|
| CATEGORY_COLUMN | constant |
public static const CATEGORY_COLUMN:String = "category"A constant which defines the value of the CATEGORY option
| DATE_COLUMN | constant |
public static const DATE_COLUMN:String = "date"A constant which defines the value of the DATE option
| LEVEL_COLUMN | constant |
public static const LEVEL_COLUMN:String = "level"A constant which defines the value of the LEVEL option
| MESSAGE_COLUMN | constant |
public static const MESSAGE_COLUMN:String = "message"A constant which defines the value of the MESSAGE option
| SEPARATOR | constant |
public static const SEPARATOR:String = " "A constant which defines the separator used to divide columns
| TIME_COLUMN | constant |
public static const TIME_COLUMN:String = "time"A constant which defines the value of the TIME option