LogChannel

Kind of class:class
Inherits from:EventType < String
Version:1.0
Author:Francis Bourre
Classpath:com.bourre.log.LogChannel
File last modified:Wednesday, 31 October 2007, 07:35:29
LogChannel gives another filtering solution for logging message.

Adds a LogListener for a specific channel,
using Logger.addLoglistener method with channel parameter.

Example

var myXMLChannel : LogChannel = new LogChannel("XML");
var mySOChannel : LogChannel = new LogChannel("SO");

Logger.getInstance().addLogListener( SosTracer.getInstance(), myXMLChannel );
Logger.getInstance().addLogListener( SosTracer.getInstance(), mySOChannel );

Logger.LOG("Message in Xml Channel", LogLevel.INFO, myXMLChannel);
Logger.LOG("Message in SO Channel", LogLevel.DEBUG, mySOChannel);

Summary

Constructor

Constructor

LogChannel

function LogChannel (
s:String)
Constructs a new LogChannel instance.
Parameters:
s:
Channel's name