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 "James A. N. Stauffer" <st...@gmail.com> on 2008/06/03 22:05:51 UTC
Re: Logging internal problems with the DailyRollingFileAppender
LogLog doesn't use the log4j config to log. If it did then there
would be recursive error problems.
On Fri, May 9, 2008 at 8:46 PM, Vincenzo Vitale
<vi...@gmail.com> wrote:
> Hi,
>
> in our system (Jboss on Linux) we log in a custom file on a remote machine;
> the directory is normally mounted in a way that if something happen Jboss
> doesn't hang. But it's an important requirement that if for any reason
> something happen while logging (directory or file not anymore available) an
> error or warnign message should be logged on the normal log file.
>
> Looking at the code of the LogLog class, I have seen that the log4j.debug
> system variable can be enabled for internal debugging messages but this kind
> of problems should be logged as Errors or warning, right? So only the
> quietMode variable is considered... but when I umount the directory or just
> change the filename nothing is logged. I see that everything is logged on
> the System error but this should be redirect to the normal log or not?
--
James A. N. Stauffer http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: Logging internal problems with the DailyRollingFileAppender
Posted by "James A. N. Stauffer" <st...@gmail.com>.
Redirect standard out and standard error. But don't send them to log4j.
On Tue, Jun 3, 2008 at 4:01 PM, Vincenzo Vitale
<vi...@gmail.com> wrote:
> Hi James,
>
> thanks for your answer.
>
> How can I configure where LogLog write the logs?
>
> On Tue, Jun 3, 2008 at 10:05 PM, James A. N. Stauffer <
> stauffer.james@gmail.com> wrote:
>
>> LogLog doesn't use the log4j config to log. If it did then there
>> would be recursive error problems.
>>
>> On Fri, May 9, 2008 at 8:46 PM, Vincenzo Vitale
>> <vi...@gmail.com> wrote:
>> > Hi,
>> >
>> > in our system (Jboss on Linux) we log in a custom file on a remote
>> machine;
>> > the directory is normally mounted in a way that if something happen Jboss
>> > doesn't hang. But it's an important requirement that if for any reason
>> > something happen while logging (directory or file not anymore available)
>> an
>> > error or warnign message should be logged on the normal log file.
>> >
>> > Looking at the code of the LogLog class, I have seen that the log4j.debug
>> > system variable can be enabled for internal debugging messages but this
>> kind
>> > of problems should be logged as Errors or warning, right? So only the
>> > quietMode variable is considered... but when I umount the directory or
>> just
>> > change the filename nothing is logged. I see that everything is logged on
>> > the System error but this should be redirect to the normal log or not?
>>
>>
>>
>> --
>> James A. N. Stauffer http://www.geocities.com/stauffer_james/
>> Are you good? Take the test at http://www.livingwaters.com/good/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>> For additional commands, e-mail: log4j-user-help@logging.apache.org
>>
>>
>
--
James A. N. Stauffer http://www.geocities.com/stauffer_james/
Are you good? Take the test at http://www.livingwaters.com/good/
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
Re: Logging internal problems with the DailyRollingFileAppender
Posted by Vincenzo Vitale <vi...@gmail.com>.
Hi James,
thanks for your answer.
How can I configure where LogLog write the logs?
On Tue, Jun 3, 2008 at 10:05 PM, James A. N. Stauffer <
stauffer.james@gmail.com> wrote:
> LogLog doesn't use the log4j config to log. If it did then there
> would be recursive error problems.
>
> On Fri, May 9, 2008 at 8:46 PM, Vincenzo Vitale
> <vi...@gmail.com> wrote:
> > Hi,
> >
> > in our system (Jboss on Linux) we log in a custom file on a remote
> machine;
> > the directory is normally mounted in a way that if something happen Jboss
> > doesn't hang. But it's an important requirement that if for any reason
> > something happen while logging (directory or file not anymore available)
> an
> > error or warnign message should be logged on the normal log file.
> >
> > Looking at the code of the LogLog class, I have seen that the log4j.debug
> > system variable can be enabled for internal debugging messages but this
> kind
> > of problems should be logged as Errors or warning, right? So only the
> > quietMode variable is considered... but when I umount the directory or
> just
> > change the filename nothing is logged. I see that everything is logged on
> > the System error but this should be redirect to the normal log or not?
>
>
>
> --
> James A. N. Stauffer http://www.geocities.com/stauffer_james/
> Are you good? Take the test at http://www.livingwaters.com/good/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>