You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Dean Gaudet <dg...@arctic.org> on 1999/04/05 05:19:06 UTC

Re: [PATCH] LogRoot directive

I guess I need to ask... why?  What's wrong with putting "logs/" in front
of all the log filenames and getting it relative to serverroot... drop a
symlink in the filesystem? 

Oh wait, are you on a half-baked operating system? 

Dean

On Wed, 31 Mar 1999 unknown@riverstyx.net wrote:

> DESCRIPTION
> ------------
> 
> this is a pretty simple little patch, but it's something that's bugged me
> for over a year now.  i've tested it pretty thoroughly, and i've patched
> mod_log_config, mod_log_referer, mod_log_agent, and http_log, so all the
> logging should be fine.  
> 
> there's a new global variable (ap_log_root) that contains the log root
> directory, and a function abstract (ap_log_root_relative()) that mimics
> ap_server_root_relative().  ap_log_root is set to ap_server_root + "/logs"
> if ap_log_root is empty when ServerRoot is processed.
> 
> the patch is against apache 1.3.6.
> 
> ---
> tani hosokawa
> river styx internet
> 
> 

Re: [PATCH] LogRoot directive

Posted by un...@riverstyx.net.
Join is a hideous kludge, and shouldn't be used :-)  Well, neither should
NT.

---
tani hosokawa
river styx internet


On Mon, 5 Apr 1999, Dean Gaudet wrote:

> I consider those OS's broken though...  besides they have a kludge called
> JOIN that does the job ;)
> 
> Dean
> 
> On Sun, 4 Apr 1999 unknown@riverstyx.net wrote:
> 
> > The reason I was appending logs was 'coz I'd lost my mind temporarily, and
> > forgotten that the default httpd.conf ships with logs/ prepended to the
> > log filename.  However, you're right -- on some OS, symlinks aren't really
> > an option, so if you want to relocate your logs to somewhere else (drive
> > space, performance, whatever), then you don't have much choice.  Every
> > other web server that I've worked with has some kind of equivalent.
> > 
> > ---
> > tani hosokawa
> > river styx internet
> > 
> > 
> > On Sun, 4 Apr 1999, Dean Gaudet wrote:
> > 
> > > I guess I need to ask... why?  What's wrong with putting "logs/" in front
> > > of all the log filenames and getting it relative to serverroot... drop a
> > > symlink in the filesystem? 
> > > 
> > > Oh wait, are you on a half-baked operating system? 
> > > 
> > > Dean
> > > 
> > > On Wed, 31 Mar 1999 unknown@riverstyx.net wrote:
> > > 
> > > > DESCRIPTION
> > > > ------------
> > > > 
> > > > this is a pretty simple little patch, but it's something that's bugged me
> > > > for over a year now.  i've tested it pretty thoroughly, and i've patched
> > > > mod_log_config, mod_log_referer, mod_log_agent, and http_log, so all the
> > > > logging should be fine.  
> > > > 
> > > > there's a new global variable (ap_log_root) that contains the log root
> > > > directory, and a function abstract (ap_log_root_relative()) that mimics
> > > > ap_server_root_relative().  ap_log_root is set to ap_server_root + "/logs"
> > > > if ap_log_root is empty when ServerRoot is processed.
> > > > 
> > > > the patch is against apache 1.3.6.
> > > > 
> > > > ---
> > > > tani hosokawa
> > > > river styx internet
> > > > 
> > > > 
> > > 
> > 
> > 
> 


Re: [PATCH] LogRoot directive

Posted by Dean Gaudet <dg...@arctic.org>.
I consider those OS's broken though...  besides they have a kludge called
JOIN that does the job ;)

Dean

On Sun, 4 Apr 1999 unknown@riverstyx.net wrote:

> The reason I was appending logs was 'coz I'd lost my mind temporarily, and
> forgotten that the default httpd.conf ships with logs/ prepended to the
> log filename.  However, you're right -- on some OS, symlinks aren't really
> an option, so if you want to relocate your logs to somewhere else (drive
> space, performance, whatever), then you don't have much choice.  Every
> other web server that I've worked with has some kind of equivalent.
> 
> ---
> tani hosokawa
> river styx internet
> 
> 
> On Sun, 4 Apr 1999, Dean Gaudet wrote:
> 
> > I guess I need to ask... why?  What's wrong with putting "logs/" in front
> > of all the log filenames and getting it relative to serverroot... drop a
> > symlink in the filesystem? 
> > 
> > Oh wait, are you on a half-baked operating system? 
> > 
> > Dean
> > 
> > On Wed, 31 Mar 1999 unknown@riverstyx.net wrote:
> > 
> > > DESCRIPTION
> > > ------------
> > > 
> > > this is a pretty simple little patch, but it's something that's bugged me
> > > for over a year now.  i've tested it pretty thoroughly, and i've patched
> > > mod_log_config, mod_log_referer, mod_log_agent, and http_log, so all the
> > > logging should be fine.  
> > > 
> > > there's a new global variable (ap_log_root) that contains the log root
> > > directory, and a function abstract (ap_log_root_relative()) that mimics
> > > ap_server_root_relative().  ap_log_root is set to ap_server_root + "/logs"
> > > if ap_log_root is empty when ServerRoot is processed.
> > > 
> > > the patch is against apache 1.3.6.
> > > 
> > > ---
> > > tani hosokawa
> > > river styx internet
> > > 
> > > 
> > 
> 
> 


Re: [PATCH] LogRoot directive

Posted by un...@riverstyx.net.
The reason I was appending logs was 'coz I'd lost my mind temporarily, and
forgotten that the default httpd.conf ships with logs/ prepended to the
log filename.  However, you're right -- on some OS, symlinks aren't really
an option, so if you want to relocate your logs to somewhere else (drive
space, performance, whatever), then you don't have much choice.  Every
other web server that I've worked with has some kind of equivalent.

---
tani hosokawa
river styx internet


On Sun, 4 Apr 1999, Dean Gaudet wrote:

> I guess I need to ask... why?  What's wrong with putting "logs/" in front
> of all the log filenames and getting it relative to serverroot... drop a
> symlink in the filesystem? 
> 
> Oh wait, are you on a half-baked operating system? 
> 
> Dean
> 
> On Wed, 31 Mar 1999 unknown@riverstyx.net wrote:
> 
> > DESCRIPTION
> > ------------
> > 
> > this is a pretty simple little patch, but it's something that's bugged me
> > for over a year now.  i've tested it pretty thoroughly, and i've patched
> > mod_log_config, mod_log_referer, mod_log_agent, and http_log, so all the
> > logging should be fine.  
> > 
> > there's a new global variable (ap_log_root) that contains the log root
> > directory, and a function abstract (ap_log_root_relative()) that mimics
> > ap_server_root_relative().  ap_log_root is set to ap_server_root + "/logs"
> > if ap_log_root is empty when ServerRoot is processed.
> > 
> > the patch is against apache 1.3.6.
> > 
> > ---
> > tani hosokawa
> > river styx internet
> > 
> > 
>