You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Stefan Zoerner <st...@labeo.de> on 2007/06/06 21:29:07 UTC
[ApacheDS] Adjusting the log file location for log4j
Hi all!
Currently, I am updating the "Configure logging" section in the Basic
User's Guide for ApacheDS 1.5 located here
http://directory.apache.org/apacheds/1.5/145-configure-logging.html
I have a probably simple problem under Windows: I am not able to modify
the log file location "var/logs". In the "log4j.properties" there are lines
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=apacheds-rolling.log
and the apacheds-rolling.log is written relative to
<APACHDS_HOME>/var/log/. I am not able to change this location. Only if
I use an absolute file name for R, it works. But how does log4j know
which target directory (default "var/log/") to use?
If I choose another value for "Log Path" in the service properties,
which can be adjusted with "apachedsw.exe" and looks promising, the file
apacheds-rolling.log is not affected. only
"jakarta_service_20070606.log" gets in the new directory.
Thanks in advance,
Stefan
Re: [ApacheDS] Adjusting the log file location for log4j
Posted by Alex Karasulu <ak...@apache.org>.
Hmmm I have no clue anymore especially on Windows. There is some odd
behavior there.
Just curious to trouble shoot it do you see the same behavior on *NIX?
Alex
On 6/6/07, Stefan Zoerner <st...@labeo.de> wrote:
>
> Hi all!
>
> Currently, I am updating the "Configure logging" section in the Basic
> User's Guide for ApacheDS 1.5 located here
>
> http://directory.apache.org/apacheds/1.5/145-configure-logging.html
>
> I have a probably simple problem under Windows: I am not able to modify
> the log file location "var/logs". In the "log4j.properties" there are
> lines
>
> log4j.appender.R=org.apache.log4j.RollingFileAppender
> log4j.appender.R.File=apacheds-rolling.log
>
> and the apacheds-rolling.log is written relative to
> <APACHDS_HOME>/var/log/. I am not able to change this location. Only if
> I use an absolute file name for R, it works. But how does log4j know
> which target directory (default "var/log/") to use?
>
> If I choose another value for "Log Path" in the service properties,
> which can be adjusted with "apachedsw.exe" and looks promising, the file
> apacheds-rolling.log is not affected. only
> "jakarta_service_20070606.log" gets in the new directory.
>
> Thanks in advance,
> Stefan
>
>
>
Re: [ApacheDS] Adjusting the log file location for log4j
Posted by Alex Karasulu <ak...@apache.org>.
Thanks Chris - enjoy the holiday.
Alex
On 6/8/07, Chris Custine <ch...@gmail.com> wrote:
>
> This is correct in the current code. With the work I have been doing for
> the split install/data directories on *nix, I currently have most logs going
> to /var/logs/apcheds/<instance name>/ In order to support multiple instances
> and using *nix style dir structure. For Windows I expect to keep things the
> way they are as mentioned earlier, but if you guys want to see something
> different let me know.
>
> I am on a vacation to California with my family, but I am still expecting
> to document this stuff and get it all cleaned up next week.
>
> As I said, let me know if you guys have any input here.
>
> Thanks,
> Chris
>
>
> On 6/7/07, Stefan Zoerner <st...@labeo.de> wrote:
> >
> > Stefan Zoerner wrote:
> > > Currently, I am updating the "Configure logging" section in the Basic
> > > User's Guide for ApacheDS 1.5 located here
> > >
> > > http://directory.apache.org/apacheds/1.5/145-configure-logging.html
> > >
> > > I have a probably simple problem under Windows: I am not able to
> > modify
> > > the log file location "var/logs". In the " log4j.properties" there are
> > lines
> >
> > Thanks to Christine, I learned that I have to modify the Working Path of
> > the Startup configuration of the Windows service. This is what log4j
> > uses at its root. Or at least when I modify it, the rolling files are
> > written relative to this location.
> >
> > I'll document this secret in the Basic User's Guide.
> > Greetings,
> > Stefan
> >
> >
> >
>
Re: [ApacheDS] Adjusting the log file location for log4j
Posted by Chris Custine <ch...@gmail.com>.
This is correct in the current code. With the work I have been doing for
the split install/data directories on *nix, I currently have most logs going
to /var/logs/apcheds/<instance name>/ In order to support multiple instances
and using *nix style dir structure. For Windows I expect to keep things the
way they are as mentioned earlier, but if you guys want to see something
different let me know.
I am on a vacation to California with my family, but I am still expecting to
document this stuff and get it all cleaned up next week.
As I said, let me know if you guys have any input here.
Thanks,
Chris
On 6/7/07, Stefan Zoerner <st...@labeo.de> wrote:
>
> Stefan Zoerner wrote:
> > Currently, I am updating the "Configure logging" section in the Basic
> > User's Guide for ApacheDS 1.5 located here
> >
> > http://directory.apache.org/apacheds/1.5/145-configure-logging.html
> >
> > I have a probably simple problem under Windows: I am not able to modify
> > the log file location "var/logs". In the "log4j.properties" there are
> lines
>
> Thanks to Christine, I learned that I have to modify the Working Path of
> the Startup configuration of the Windows service. This is what log4j
> uses at its root. Or at least when I modify it, the rolling files are
> written relative to this location.
>
> I'll document this secret in the Basic User's Guide.
> Greetings,
> Stefan
>
>
>
Re: [ApacheDS] Adjusting the log file location for log4j
Posted by Stefan Zoerner <st...@labeo.de>.
Stefan Zoerner wrote:
> Currently, I am updating the "Configure logging" section in the Basic
> User's Guide for ApacheDS 1.5 located here
>
> http://directory.apache.org/apacheds/1.5/145-configure-logging.html
>
> I have a probably simple problem under Windows: I am not able to modify
> the log file location "var/logs". In the "log4j.properties" there are lines
Thanks to Christine, I learned that I have to modify the Working Path of
the Startup configuration of the Windows service. This is what log4j
uses at its root. Or at least when I modify it, the rolling files are
written relative to this location.
I'll document this secret in the Basic User's Guide.
Greetings,
Stefan