You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Adam Furmanczuk <af...@knowtrek.com> on 2012/09/06 16:47:35 UTC
log4j 2.x configuration not found
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Probably this issue has been raised before, but could not find any hint:
I wanted to use the new log4j 2.x in my JSF webproject, but it fails
to load my configuration file.
I edited the log4j.xml according to the new scheme and checked that it
gets deployed to the classes dir of my web-project, However while
logging it falls back to the default configuration.
(I am using tomcat7.0.28 as my java application server with java
version "1.7.0_03")
Any idea what I am missing?
Greets,
Adam
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAlBIt4cACgkQefEEI87R1De+4gCeIxyJemDhbWioupNwh4ghb5cR
bRsAn0L8fN1uM5CaOu4wDntlIzztZ6eW
=4fXR
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: log4j 2.x configuration not found
Posted by Ralph Goers <ra...@dslextreme.com>.
Thanks, I was going through the documentation with some of coworkers yesterday and found some other issues as well. I will try to get these addressed before the next release.
Ralph
On Sep 7, 2012, at 11:18 AM, Adam Furmanczuk wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Ralph,
>
> renaming to log4j2.xml worked, thank you. Please note that
> configuration page [1] is still poiting to log4j.xml causing confusion.
>
> Greets,
>
> Adam
>
>
> [1] http://logging.apache.org/log4j/2.x/manual/configuration.html
>
>
>
>> Try renaming it to log4j2.xml.
>>
>> Ralph
>>
>> On Sep 6, 2012, at 7:47 AM, Adam Furmanczuk wrote:
>>
>> Hi,
>>
>> Probably this issue has been raised before, but could not find any
>> hint:
>>
>> I wanted to use the new log4j 2.x in my JSF webproject, but it
>> fails to load my configuration file.
>>
>> I edited the log4j.xml according to the new scheme and checked that
>> it gets deployed to the classes dir of my web-project, However
>> while logging it falls back to the default configuration.
>>
>> (I am using tomcat7.0.28 as my java application server with java
>> version "1.7.0_03")
>>
>> Any idea what I am missing?
>>
>> Greets,
>>
>> Adam
>>>
>>> ---------------------------------------------------------------------
>>>
>>>
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>>> For additional commands, e-mail:
>>> log4j-user-help@logging.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>>
>>
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>> For additional commands, e-mail:
>> log4j-user-help@logging.apache.org
>>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.12 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAlBKOlkACgkQefEEI87R1DdsCQCeKUEKgNgUfMnX2Boi2m6FzJG1
> tE0AoJ5LQjekdJTmo5h7cBqDaCmXnZp8
> =DCuh
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: log4j 2.x configuration not found
Posted by Adam Furmanczuk <af...@knowtrek.com>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Ralph,
renaming to log4j2.xml worked, thank you. Please note that
configuration page [1] is still poiting to log4j.xml causing confusion.
Greets,
Adam
[1] http://logging.apache.org/log4j/2.x/manual/configuration.html
> Try renaming it to log4j2.xml.
>
> Ralph
>
> On Sep 6, 2012, at 7:47 AM, Adam Furmanczuk wrote:
>
> Hi,
>
> Probably this issue has been raised before, but could not find any
> hint:
>
> I wanted to use the new log4j 2.x in my JSF webproject, but it
> fails to load my configuration file.
>
> I edited the log4j.xml according to the new scheme and checked that
> it gets deployed to the classes dir of my web-project, However
> while logging it falls back to the default configuration.
>
> (I am using tomcat7.0.28 as my java application server with java
> version "1.7.0_03")
>
> Any idea what I am missing?
>
> Greets,
>
> Adam
>>
>> ---------------------------------------------------------------------
>>
>>
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>> For additional commands, e-mail:
>> log4j-user-help@logging.apache.org
>>
>
>
> ---------------------------------------------------------------------
>
>
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail:
> log4j-user-help@logging.apache.org
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAlBKOlkACgkQefEEI87R1DdsCQCeKUEKgNgUfMnX2Boi2m6FzJG1
tE0AoJ5LQjekdJTmo5h7cBqDaCmXnZp8
=DCuh
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: log4j 2.x configuration not found
Posted by Ralph Goers <ra...@dslextreme.com>.
Try renaming it to log4j2.xml.
Ralph
On Sep 6, 2012, at 7:47 AM, Adam Furmanczuk wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> Probably this issue has been raised before, but could not find any hint:
>
> I wanted to use the new log4j 2.x in my JSF webproject, but it fails
> to load my configuration file.
>
> I edited the log4j.xml according to the new scheme and checked that it
> gets deployed to the classes dir of my web-project, However while
> logging it falls back to the default configuration.
>
> (I am using tomcat7.0.28 as my java application server with java
> version "1.7.0_03")
>
> Any idea what I am missing?
>
> Greets,
>
> Adam
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.12 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAlBIt4cACgkQefEEI87R1De+4gCeIxyJemDhbWioupNwh4ghb5cR
> bRsAn0L8fN1uM5CaOu4wDntlIzztZ6eW
> =4fXR
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org