First I'd like to say that as3-commons-logging has simplified logging in my project, and the user guide and documentation are very good, so thanks very much!
I'm trying to log to a couple of different custom ILogTarget implementations at different LogSetupLevels, but it looks like my log messages aren't going to both targets. I'm configuring logging with the following code:
var localTargetSetup:LevelTargetSetup = new LevelTargetSetup(
new ExternalInterfaceTarget(),
LogSetupLevel.DEBUG
);
var serverTargetSetup:LevelTargetSetup = new LevelTargetSetup(
new FunctionTarget(this.serverLog),
LogSetupLevel.INFO
);
LOGGER_FACTORY.setup = new MergedSetup(localTargetSetup, serverTargetSetup);
My intention with this code is to have all log messages hit the ExternalInterfaceTarget, and only INFO and higher to hit the FunctionTarget (which works), but only DEBUG messages are hitting the ExternalInterfaceTarget. If I change my serverTargetSetup to:
var serverTargetSetup:LevelTargetSetup = new LevelTargetSetup(
new FunctionTarget(this.serverLog),
LogSetupLevel.DEBUG
);
I don't get any log messages at all hitting my ExternalInterfaceTarget. Is it possible to do this? Am I making this more complicated than necessary?