Hi, Sorry for the mistake. Givng the full path to axutil_log_create function will solve your problem.
inside log_create function this if condition will put log file in the path you specified if it your path contains path seperators. if (stream_name && !(axutil_rindex(stream_name, AXIS2_PATH_SEP_CHAR))) Thanks. Milinda On 9/3/07, Samisa Abeysinghe <[EMAIL PROTECTED]> wrote: > > 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 as below, > > > > > > > > logsdir=$(prefix)/logs # old > > > > logsdir=$(prefix)/axis_logs #mine > > > > > > > > With the above changes, the log isn't getting written to the new path. > > Are the changes done above are valid and relevent? > > > They are invalid and not relevant. This entry in the make file just > ensures it creates the default logs folder. > > > > Is there any other configuration that needs to be tuned? Or is it > > needs to taken care at the code level of axutil? > > > You have to do this at code level. You do not have to modify axutil. > Rather you have to modify your code where you use Axis2/C. > As an example, please have a look at the init_syetem_env function in > src/core/transport/http/server/simple_axis2_server/http_server_main.c > This is the main program of simple axis2 server and the given function > creates the log based on the location given in log_file parameter. > As Milinda mentioned in his reply, make sure you have created the folder > structure - Axis2/C only creates the file, not the folders. > > HTH. > > Samisa... > > > > Please reply. > > > > > > > > P.S: even Makefile.am has logsdir=$(prefix)/logs, which I haven't > > changed. Does it matter? > > > > > > > > Regards, > > > > ~raghav > > > > > > > > > > > > > -- > Samisa Abeysinghe : WSO2 WSF/C > " > http://wso2.org/projects/wsf/c?WSO2 Web Services Framework/C - Open source C library for providing and consuming Web services > " > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- [EMAIL PROTECTED] WSO2, Inc: http://www.wso2.com "Oxygenating the Web Service Platform" http://www.milindalakmal.wordpress.com
