log4j.rootLogger=WARN, FILElog4j.appender.FILE=org.as3commons.logging.setup.target::TraceTargetlog4j.appender.FILE.format={time} {logLevel} {shortName} - {message}
log4j.logger.com.company.view.window.config.map=DEBUGlog4j.logger.com.company.view.window.config.relationship=DEBUG
log4j.logger.com.traficon=INFOlog4j.logger.main=INFO
--
You received this message because you are subscribed to the Google Groups "as3-commons-developers" group.To post to this group, send email to as3-commons...@googlegroups.com.
To unsubscribe from this group, send email to as3-commons-devel...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/as3-commons-developers?hl=en.
public function testOverridingSetup(): void {
var log4j: Log4JStyleSetup = new Log4JStyleSetup();
log4j.rootLogger="WARN, FILE";
log4j.appender["FILE"] = _testTarget;
log4j.logger["com"]["company"]["view"]["window"]["config"]["map"]="DEBUG";
log4j.logger["com"]["company"]["view"]["window"]["config"]["relationship"]="DEBUG";
log4j.logger["com"]["company"]="INFO";
log4j.logger["main"]="INFO";
var setup: ILogSetup = log4j.compile();
var mapRootLogger: Logger = new
Logger("com.company.view.window.config.map");
var mapLogger: Logger = new
Logger("com.company.view.window.config.map.Test");
var companyLogger: Logger = new Logger("com.company.Test");
var mainLogger: Logger = new Logger("main");
var heinzLogger: Logger = new Logger("heinz");
setup.applyTo(mapRootLogger);
setup.applyTo(mapLogger);
setup.applyTo(companyLogger);
setup.applyTo(mainLogger);
setup.applyTo(heinzLogger);
assertLoggerLever( mapRootLogger, LogSetupLevel.DEBUG );
assertLoggerLever( mapLogger, LogSetupLevel.DEBUG );
assertLoggerLever( companyLogger, LogSetupLevel.INFO );
assertLoggerLever( mainLogger, LogSetupLevel.INFO );
assertLoggerLever( heinzLogger, LogSetupLevel.WARN );
}
am I understanding something wrong?
yours
Martin.
yours
Martin.
--
You received this message because you are subscribed to the Google Groups "as3-commons-developers" group.
To post to this group, send email to as3-commons-developers@googlegroups.com.
To unsubscribe from this group, send email to as3-commons-developers+unsub...@googlegroups.com.
To unsubscribe from this group, send email to as3-commons-developers+unsubscri...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/as3-commons-developers/-/R2oD689pv0AJ.
To post to this group, send email to as3-commons...@googlegroups.com.
To unsubscribe from this group, send email to as3-commons-devel...@googlegroups.com.
To post to this group, send email to as3-commons...@googlegroups.com.
To unsubscribe from this group, send email to as3-commons-developers+unsub...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "as3-commons-developers" group.
To view this discussion on the web visit https://groups.google.com/d/msg/as3-commons-developers/-/R2oD689pv0AJ.
To post to this group, send email to as3-commons...@googlegroups.com.
To unsubscribe from this group, send email to as3-commons-developers+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to as3-commons-devel...@googlegroups.com.
Visit this group at http://groups.google.com/group/as3-commons-developers?hl=en.For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to a topic in the Google Groups "as3-commons-developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/as3-commons-developers/SBJ1MWFVzEo/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to as3-commons-devel...@googlegroups.com.