Packagecom.daveoncode.logging.ui
Classpublic class LogWindow
InheritanceLogWindow Inheritance mx.core.Window

LogWindow is an UI component which display the content of a log file into a DataGrid and provides a toolbar to filter data. You can toolbar's labels by using the relative properties


Example

var lw:LogWindow = new LogWindow();
lw.logFile = File.applicationStorageDirectory.resolvePath("myApp.log");
lw.dateFormat = "DD/MM/YY";
lw.title = "Application logs";
lw.width = 800;
lw.height = 600;
lw.open(true);



Public Properties
 PropertyDefined by
  categoryLabel : String
Label used for the category filter field
LogWindow
  clearFiltersLabel : String
Label used for clear filters button
LogWindow
  dateLabel : String
Label used for date filter field
LogWindow
  gridColumns : Vector
An Array of DataGrid columns
LogWindow
  labelSeparator : String
A string used after the label
LogWindow
  levelLabel : String
Label used for log level filter combo
LogWindow
  logReader : LogReader
[read-only] A reference to the LogReader instance used by LogWindow
LogWindow
Public Methods
 MethodDefined by
  
Constructor function of LogWindow class
LogWindow
Protected Methods
 MethodDefined by
  
Creates and displays all interface's components (toolbar and grid)
LogWindow
Property detail
categoryLabelproperty
categoryLabel:String  [read-write]

Label used for the category filter field

Implementation
    public function get categoryLabel():String
    public function set categoryLabel(value:String):void
clearFiltersLabelproperty 
clearFiltersLabel:String  [read-write]

Label used for clear filters button

Implementation
    public function get clearFiltersLabel():String
    public function set clearFiltersLabel(value:String):void
dateLabelproperty 
dateLabel:String  [read-write]

Label used for date filter field

Implementation
    public function get dateLabel():String
    public function set dateLabel(value:String):void
gridColumnsproperty 
gridColumns:Vector  [read-write]

An Array of DataGrid columns

Implementation
    public function get gridColumns():Vector
    public function set gridColumns(value:Vector):void
labelSeparatorproperty 
labelSeparator:String  [read-write]

A string used after the label

The default value is ": ".

Implementation
    public function get labelSeparator():String
    public function set labelSeparator(value:String):void
levelLabelproperty 
levelLabel:String  [read-write]

Label used for log level filter combo

Implementation
    public function get levelLabel():String
    public function set levelLabel(value:String):void
logReaderproperty 
logReader:LogReader  [read-only]

A reference to the LogReader instance used by LogWindow

Implementation
    public function get logReader():LogReader
Constructor detail
LogWindow()constructor
public function LogWindow()

Constructor function of LogWindow class

Method detail
createChildren()method
protected override function createChildren():void

Creates and displays all interface's components (toolbar and grid)