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 "Samisa Abeysinghe (JIRA)" <ji...@apache.org> on 2006/02/04 04:55:04 UTC
[jira] Created: (AXIS2C-56) If the folder in which the log file is
to be written is missing, no log file is ever created
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: M1.0
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
[jira] Closed: (AXIS2C-56) If the folder in which the log file is
to be written is missing, no log file is ever created
Posted by "Samisa Abeysinghe (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/AXIS2C-56?page=all ]
Samisa Abeysinghe closed AXIS2C-56:
-----------------------------------
Resolution: Fixed
Nabeel has fixed this. Now if the folder is missing, log is written to the current directory.
> 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
[jira] Commented: (AXIS2C-56) If the folder in which the log file
is to be written is missing, no log file is ever created
Posted by "nabeel yoosuf (JIRA)" <ji...@apache.org>.
[ 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