Wow - it is really great to have you digging into this.
Did you look at
http://people.apache.org/~rgoers/log4j2/manual/configuration.html? It has two
sample json configuration files and talks about what you need to do to use
arrays. In particular, the loggers section looks like
"loggers"
hey ralph,
its a pleasure. I like that code and it is impressive that you wrote i
mostly alone
I have found an error on this page. There is a sample like that:
"loggers": {
"logger": { "name": "EventLogger", "level": "info",
"additivity": "false", "appender-ref": { "ref": "Routing" }},
OK - I could swear that I copied the examples straight from unit tests. See
log4j-routing.json and log4j-routing2.json.
Ralph
On Apr 28, 2012, at 7:15 AM, Christian Grobmeier wrote:
> hey ralph,
>
> its a pleasure. I like that code and it is impressive that you wrote i
> mostly alone
>
> I h
On Sat, Apr 28, 2012 at 4:33 PM, Ralph Goers wrote:
> OK - I could swear that I copied the examples straight from unit tests. See
> log4j-routing.json and log4j-routing2.json.
Actually you did. Something is wrong here...
log4j-routing.json:
"loggers": {
"logger": { "name": "EventLogger"
What is the problem?
Ralph
On Apr 28, 2012, at 1:03 PM, Christian Grobmeier wrote:
> On Sat, Apr 28, 2012 at 4:33 PM, Ralph Goers
> wrote:
>> OK - I could swear that I copied the examples straight from unit tests. See
>> log4j-routing.json and log4j-routing2.json.
>
> Actually you did. Som
the first example uses an object as "logger" value,
the second one an array with objects.
I understood it so that only the array option should work?
On Sat, Apr 28, 2012 at 10:05 PM, Ralph Goers
wrote:
> What is the problem?
>
> Ralph
>
> On Apr 28, 2012, at 1:03 PM, Christian Grobmeier wrote:
No. You can have multiple distinct objects or an array since both end up with
multiple logger objects.
Ralph
On Apr 28, 2012, at 1:08 PM, Christian Grobmeier wrote:
> the first example uses an object as "logger" value,
> the second one an array with objects.
>
> I understood it so that only
Are you getting confused as to when the type element is required? If so,
reread the section on the configuration page.
Ralph
On Apr 28, 2012, at 1:08 PM, Christian Grobmeier wrote:
> the first example uses an object as "logger" value,
> the second one an array with objects.
>
> I understood
On Sat, Apr 28, 2012 at 10:25 PM, Ralph Goers wrote:
> No. You can have multiple distinct objects or an array since both end up with
> multiple logger objects.
OK. So does that mean I can have either one object in the key "logger"
or an array? That would make sense.
>
> Ralph
>
> On Apr 28, 20
On Sat, Apr 28, 2012 at 10:31 PM, Ralph Goers wrote:
> Are you getting confused as to when the type element is required? If so,
> reread the section on the configuration page.
No, thats not what bugs me. I understand that.
I am fighting with this log4j2.json configuration and can't find the
er
10 matches
Mail list logo