dizag / as3-commons

Automatically exported from code.google.com/p/as3-commons
1 stars 0 forks source link

Forced lowercase args extraction in the Loggin Xml Setup Configuration #95

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. apply Xml Setup Config like this:
var setupXml:XML = <setup xmlns="http://as3commons.org/logging/1">
    <target type="trace" name="local">
        <arg value="{time} {logLevel} - {shortName}{atPerson} - {message}" />
    </target>
    <rule level="ALL"><target-ref ref="local" /></rule>;
LOGGER_FACTORY.setup = xmlToSetup(setupXml, TARGET_TYPES);

2. try to write log

In result you will get something like this:
...
0:33:41.425 {loglevel} - {shortname}{atperson} - Logger initialization completed
...

Of course result should be like this:
...
0:33:41.425 INFO - LoggerManager - Logger initialization completed
...

I am using as3commons-logging-2.6.swc.

The reason of wrong behaviour is forced lowercase args extraction in the Loggin 
Xml Setup Configuration.

Attached patch file resolves the issue.

Original issue reported on code.google.com by RakovI...@gmail.com on 29 Sep 2011 at 11:12

Attachments:

GoogleCodeExporter commented 9 years ago
I think it is a Critical Bug. Xml Configuration almost can`t be used without 
the bug fixing.

Original comment by RakovI...@gmail.com on 29 Sep 2011 at 11:21

GoogleCodeExporter commented 9 years ago
Very critical indeed, thanks for reporting! I start working on in right now!

Original comment by martin.h...@gmail.com on 29 Sep 2011 at 12:34

GoogleCodeExporter commented 9 years ago

Original comment by martin.h...@gmail.com on 29 Sep 2011 at 12:35

GoogleCodeExporter commented 9 years ago
Fixed in last commit, did I miss something?

http://code.google.com/p/as3-commons/source/detail?r=1388

Original comment by martin.h...@gmail.com on 29 Sep 2011 at 2:02