You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "nabeel yoosuf (JIRA)" <ji...@apache.org> on 2006/02/14 08:14:09 UTC

[jira] Commented: (AXIS2C-56) If the folder in which the log file is to be written is missing, no log file is ever created

    [ http://issues.apache.org/jira/browse/AXIS2C-56?page=comments#action_12366305 ] 

nabeel yoosuf commented on AXIS2C-56:
-------------------------------------

In the submitted patch for issue# 55, an stderr is sent if the logs folder does not exist and the log is written to the current directory. 
dir handling for unix and win32 will be implemented to recursively create the dir if it does not exist.

> If the folder in which the log file is to be written is missing, no log file is ever created
> --------------------------------------------------------------------------------------------
>
>          Key: AXIS2C-56
>          URL: http://issues.apache.org/jira/browse/AXIS2C-56
>      Project: Axis2-C
>         Type: Bug
>   Components: util
>     Versions: Current (Nightly)
>     Reporter: Samisa Abeysinghe
>      Fix For: M0.4

>
> If my log file location is /home/samisa/axis2/c/deploy/log/axis2.log and if the folder /home/samisa/axis2/c/deploy/log/ does not exist, then no log is written. At least it should report an error to the user and then redirect the log messages to stderr.
> I think the better option sould be to create the folder if it is missing and then create the log file - needs bit of coding but that is the clean way to do the job. If creation of files/folders fail (e.g. due to no access rights) then we should report that and redirect the log messaged to stderr.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira