[logback-user] Invalid URL reference in logback error code
Stevo Slavić
sslavic at gmail.com
Fri Oct 21 20:15:28 CEST 2011
Hello Ceki,
Thank you for correcting this, I guess it will be later available when
site gets published again.
perf4j release which supports logback is already available,
http://repo1.maven.org/maven2/org/perf4j/perf4j/0.9.16/
Note there is perf4j package with logback-only support, and package
with all logging frameworks supported.
Just that example in perf4j's logback package javadoc is invalid, I've
created a pull request with the fix (
https://github.com/perf4j/perf4j/pull/4 ) and reported issue in perf4j
JIRA ( http://jira.codehaus.org/browse/PERFFORJ-60 )
Regards,
Stevo.
On Fri, Oct 21, 2011 at 7:21 PM, ceki <ceki at qos.ch> wrote:
>
> Hi Stevo,
>
> Thanks for pointing out this omission in the "codes" page. I just corrected
> it in http://github.com/ceki/logback/commit/1c1e6e5b44a7f .
>
> By the way, I am glad perf4j now supports perf4j. Please let us know when
> the new version of perf4j is released so that we can add link to perf4j from
> the logback site.
>
> Cheers,
> --
> Ceki
> http://twitter.com/#!/ceki
>
> On 21/10/2011 4:18 AM, Stevo Slavić wrote:
>>
>> Hello logback users,
>>
>> When trying out perf4j's recently added support for logback I followed
>> example from perf4j logback package javadoc which can be found here:
>>
>> http://perf4j.codehaus.org/apidocs/index.html?org/perf4j/logback/package-summary.html
>>
>> That example at the moment has a bug, perf4jFileAppender is referenced
>> from a logger, but the appender is listed in configuration file after
>> logger. Logback's AppenderRefAction reports this as an error with
>> following code
>>
>> {code}
>> ...
>> Appender appender = (Appender) appenderBag.get(appenderName);
>>
>> if (appender == null) {
>> String msg = "Could not find an appender named [" + appenderName
>> + "]. Did you define it below in the config file?";
>> inError = true;
>> addError(msg);
>> addError("See " + CoreConstants.CODES_URL
>> + "#appender_order for more details.");
>> return;
>> }
>> ...
>> {code}
>>
>> Url this produces in logback-classic 0.9.30 is
>> http://logback.qos.ch/codes.html#appender_order
>> When accessed, error codes page opens, but on it there is no
>> explanation for this error and in the page source there is no element
>> with appender_order id.
>> Couldn't find in the history of the codes.html page (
>>
>> https://github.com/ceki/logback/commits/master/logback-site/src/site/pages/codes.html
>> ) one revision that ever had this.
>>
>> Am I missing something or is this a bug in logback site?
>>
>> Regards,
>> Stevo.
>
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/logback-user
More information about the Logback-user
mailing list