You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Gary Gregory <ga...@gmail.com> on 2015/09/24 20:31:02 UTC
ERROR Unable to locate appender RollingFile for logger
I'm in a weird state where I am getting:
2015-09-24 11:25:27,317 main ERROR Unable to locate appender RollingFile
for logger
with 2.3 and 2.4. How can that be? I generated Eclipse .classpath files for
a multi-module project with 'mvn eclipse:eclipse' as usual. Log4j worked
yesterday. Weird!
That must mean Log4j cannot find dat files all of a sudden?
Gary
--
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory
Re: ERROR Unable to locate appender RollingFile for logger
Posted by Gary Gregory <ga...@gmail.com>.
Sigh, brain fart on my end. Applogies. I had a part of my XML config
commented out.
In a different project, I had an 'enabled' attribute on certain XML
elements in config files, which was a really neat way to turn things on and
off without messing with XML comments, and worse, not being able to use
_nested_ XML comments, since XML does not allow for that.
I we had an 'enabled' attribute, I could have seen a WARN like "Appender
RollingFile is referenced but not enabled."
Gary
On Thu, Sep 24, 2015 at 11:48 AM, Ralph Goers <ra...@dslextreme.com>
wrote:
> I would expect you to see a lot more errors if that was the case. Can you
> enable debug level and see what happens during configuration?
>
> Ralph
>
> On Sep 24, 2015, at 11:31 AM, Gary Gregory <ga...@gmail.com> wrote:
>
> I'm in a weird state where I am getting:
>
> 2015-09-24 11:25:27,317 main ERROR Unable to locate appender RollingFile
> for logger
>
> with 2.3 and 2.4. How can that be? I generated Eclipse .classpath files
> for a multi-module project with 'mvn eclipse:eclipse' as usual. Log4j
> worked yesterday. Weird!
>
> That must mean Log4j cannot find dat files all of a sudden?
>
> Gary
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> Java Persistence with Hibernate, Second Edition
> <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>
>
>
--
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory
Re: ERROR Unable to locate appender RollingFile for logger
Posted by Remko Popma <re...@gmail.com>.
Have you pulled the latest from Git? During my Checkstyle cleanup at some
point I messed up the Level class; this compiled but gave
ClassDefNotFoundErrors at runtime (during the tests). I fixed this a few
hours ago but if you checked out that version you may see strange errors.
On Fri, Sep 25, 2015 at 3:48 AM, Ralph Goers <ra...@dslextreme.com>
wrote:
> I would expect you to see a lot more errors if that was the case. Can you
> enable debug level and see what happens during configuration?
>
> Ralph
>
> On Sep 24, 2015, at 11:31 AM, Gary Gregory <ga...@gmail.com> wrote:
>
> I'm in a weird state where I am getting:
>
> 2015-09-24 11:25:27,317 main ERROR Unable to locate appender RollingFile
> for logger
>
> with 2.3 and 2.4. How can that be? I generated Eclipse .classpath files
> for a multi-module project with 'mvn eclipse:eclipse' as usual. Log4j
> worked yesterday. Weird!
>
> That must mean Log4j cannot find dat files all of a sudden?
>
> Gary
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> Java Persistence with Hibernate, Second Edition
> <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>
>
>
Re: ERROR Unable to locate appender RollingFile for logger
Posted by Ralph Goers <ra...@dslextreme.com>.
I would expect you to see a lot more errors if that was the case. Can you enable debug level and see what happens during configuration?
Ralph
> On Sep 24, 2015, at 11:31 AM, Gary Gregory <ga...@gmail.com> wrote:
>
> I'm in a weird state where I am getting:
>
> 2015-09-24 11:25:27,317 main ERROR Unable to locate appender RollingFile for logger
>
> with 2.3 and 2.4. How can that be? I generated Eclipse .classpath files for a multi-module project with 'mvn eclipse:eclipse' as usual. Log4j worked yesterday. Weird!
>
> That must mean Log4j cannot find dat files all of a sudden?
>
> Gary
>
> --
> E-Mail: garydgregory@gmail.com <ma...@gmail.com> | ggregory@apache.org <ma...@apache.org>
> Java Persistence with Hibernate, Second Edition <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com <http://garygregory.wordpress.com/>
> Home: http://garygregory.com/ <http://garygregory.com/>
> Tweet! http://twitter.com/GaryGregory <http://twitter.com/GaryGregory>