axis-c-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Milinda Pathirage" <milinda.pathir...@gmail.com>
Subject Re: Issues with the log directory
Date Mon, 03 Sep 2007 12:12:07 GMT
Hi,
There is minor modification to my previous reply. You have to create the
directory(Which you change according to your preference in axutil_log_create
function) before you start the axis2_engine. Other wise It'will put logs
inside working directory, because it can't find the directory.

Thanks
Milinda


On 9/3/07, Milinda Pathirage <milinda.pathirage@gmail.com> wrote:
>
> Hi,
>
> To change the default log directory you have to change the implementation
> of axutil_log_create function inside log.c file. In current implementation
> it create the path of the log directory is by concatenating "logs" with
> AXIS2C_HOME value (Or if AXIS2C_HOME not available logs will create inside
> current working directory). So you have to change this default implementatio
> of axutil_log_create function to put the log in other directory than the
> default directory. Please look at the above function and you will be able to
> figure out the solution which suitable to your needs.
>
> 'Thanks
>
> Milinda
>
>
>
>
>
>  On 9/3/07, Kaushalye Kapuruge <kaushalye@wso2.com> wrote:
> >
> > Hmm.. have you tried axutil_env_create_all() function ?
> > There you can specify the log file name.
> > -Kaushalye
> >
> > Raghavendra SM wrote:
> > > Kaushalye,
> > >
> > > We are not starting the axis2_http_server as below. Its done
> > > programmatically and not through command line, we are invoking
> > axis_init
> > > related functions ourselves.
> > >
> > > Regards,
> > > ~raghav
> > >
> > >
> > > -----Original Message-----
> > > From: Kaushalye Kapuruge [mailto:kaushalye@wso2.com]
> > > Sent: Monday, September 03, 2007 3:19 PM
> > > To: Apache AXIS C User List
> > > Subject: Re: Issues with the log directory
> > >
> > > Hi Raghav,
> > >
> > > You may use the -f option when you start the server.
> > >
> > > Usage : ./axis2_http_server [-p PORT] [-t TIMEOUT] [-r REPO_PATH] [-l
> > > LOG_LEVEL] [-f LOG_FILE]
> > >  Options :
> > >         -p PORT          port number to use, default port is 9090
> > >         -r REPO_PATH     repository path, default is ../
> > >         -t TIMEOUT       socket read timeout, default is 30 seconds
> > >         -l LOG_LEVEL     log level, available log levels:
> > >                          0 - critical    1 - errors 2 - warnings
> > >                          3 - information 4 - debug  5- trace
> > >                          Default log level is 4(debug).
> > >         -f LOG_FILE      log file, default is
> > > $AXIS2C_HOME/logs/axis2.log
> > >                          or axis2.log in current folder if AXIS2C_HOME
> > > not set
> > >
> > > Cheer,
> > > Kaushalye
> > >
> > > Raghavendra SM wrote:
> > >
> > >> Hi All,
> > >>
> > >>
> > >>
> > >> Axis2C, by default writes the axis2.log file to /logs/ directory. But
> > >> we need to write the axis2.log to a new directory say, /axis2_log/.
> > >>
> > >> I tried changing the Makefile and Makefile.in <http://makefile.in/>as
below,
> > >>
> > >>
> > >>
> > >> logsdir=$(prefix)/logs  # old
> > >>
> > >> logsdir=$(prefix)/axis_logs  #mine
> > >>
> > >>
> > >>
> > >> With the above changes, the log isnt getting written to the new
> > >>
> > > path.
> > >
> > >> Are the changes done above are valid and relevent? Is there any other
> >
> > >> configuration that needs to be tuned? Or is it needs to taken care at
> > >> the code level of axutil? Please reply.
> > >>
> > >>
> > >>
> > >> P.S: even Makefile.am <http://makefile.am/> has
> > logsdir=$(prefix)/logs, which I havent
> > >> changed. Does it matter?
> > >>
> > >>
> > >>
> > >> Regards,
> > >>
> > >> ~raghav
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >
> > >
> > >
> >
> >
> > --
> > http://kaushalye.blogspot.com/
> > http://wso2.org/
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-c-user-help@ws.apache.org
> >
> >
>
>
> --
> milinda@wso2.com
> WSO2, Inc: http://www.wso2.com "Oxygenating the Web Service Platform"
> http://www.milindalakmal.wordpress.com




-- 
milinda@wso2.com
WSO2, Inc: http://www.wso2.com "Oxygenating the Web Service Platform"
http://www.milindalakmal.wordpress.com

Mime
View raw message