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 Vin Karthik <vi...@yahoo.com> on 2005/11/14 15:24:18 UTC

Logging failing because the intermediate directories do not exist

Hi All,
   
  I tried running log4j when the intermediate directories where the log giles need to be put are not in place. Ideally, it should create the directories and drop the log file in it's place. But it is not happening. Can someone let me know why is it behaving in this manner?
   
  Thanks
  Karthik

		
---------------------------------
 Yahoo! FareChase - Search multiple travel sites in one click.  

Re: Logging failing because the intermediate directories do not exist

Posted by Curt Arnold <ca...@apache.org>.
See bug http://issues.apache.org/bugzilla/show_bug.cgi?id=9150.   
FileAppenders in 1.2.12 and the current SVN HEAD both attempt to  
create directories if the parent directory does not exist.

If you'd like to report a bug, please be more specific about what is  
occurring and the circumstances.  The new code in the FileAppender  
will create directories with the default permissions inherited from  
the last available parent directory.  It may be possible for the  
directories to be created, but to still lack the access rights to  
create files in the directories.


On Nov 17, 2005, at 10:04 AM, James Stauffer wrote:

> I have never seen a case where a log4j appender creates a directory.
> Under what circumstances does it create directories?
>
> On 11/17/05, Vin Karthik <vi...@yahoo.com> wrote:
>> There are cases when the appender creates directories and drops  
>> the log files if the directories dont exist..It is happening with  
>> log4j1.2.12..can you please help me?
>
> --
> James Stauffer
> 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
>


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Re: Logging failing because the intermediate directories do not exist

Posted by James Stauffer <st...@gmail.com>.
I have never seen a case where a log4j appender creates a directory. 
Under what circumstances does it create directories?

On 11/17/05, Vin Karthik <vi...@yahoo.com> wrote:
> There are cases when the appender creates directories and drops the log files if the directories dont exist..It is happening with log4j1.2.12..can you please help me?

--
James Stauffer
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 failing because the intermediate directories do not exist

Posted by Vin Karthik <vi...@yahoo.com>.
There are cases when the appender creates directories and drops the log files if the directories dont exist..It is happening with log4j1.2.12..can you please help me?

James Stauffer <st...@gmail.com> wrote:  The appenders don't create directories. Some people have made
appenders that create the directories. 1.3 might have something to
help with this.

On 11/14/05, Vin Karthik wrote:
> Hi All,
>
> I tried running log4j when the intermediate directories where the log giles need to be put are not in place. Ideally, it should create the directories and drop the log file in it's place. But it is not happening. Can someone let me know why is it behaving in this manner?
>
> Thanks
> Karthik
>
>
> ---------------------------------
> Yahoo! FareChase - Search multiple travel sites in one click.
>


--
James Stauffer
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




		
---------------------------------
 Yahoo! FareChase - Search multiple travel sites in one click.  

Re: Logging failing because the intermediate directories do not exist

Posted by James Stauffer <st...@gmail.com>.
The appenders don't create directories.  Some people have made
appenders that create the directories.  1.3 might have something to
help with this.

On 11/14/05, Vin Karthik <vi...@yahoo.com> wrote:
> Hi All,
>
>   I tried running log4j when the intermediate directories where the log giles need to be put are not in place. Ideally, it should create the directories and drop the log file in it's place. But it is not happening. Can someone let me know why is it behaving in this manner?
>
>   Thanks
>   Karthik
>
>
> ---------------------------------
>  Yahoo! FareChase - Search multiple travel sites in one click.
>


--
James Stauffer
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