Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 20593 invoked from network); 4 Sep 2007 03:08:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Sep 2007 03:08:56 -0000 Received: (qmail 22232 invoked by uid 500); 4 Sep 2007 03:08:50 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 22215 invoked by uid 500); 4 Sep 2007 03:08:50 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 22204 invoked by uid 99); 4 Sep 2007 03:08:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Sep 2007 20:08:50 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of milinda.pathirage@gmail.com designates 64.233.182.188 as permitted sender) Received: from [64.233.182.188] (HELO nf-out-0910.google.com) (64.233.182.188) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Sep 2007 03:08:45 +0000 Received: by nf-out-0910.google.com with SMTP id 30so1337561nfu for ; Mon, 03 Sep 2007 20:08:23 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=j6qzWe8xUQMcnC8+FENbvDNG5zgq+R07iUWZSCRjkNwPyh2vOczxJsqZDVA+W31RmRiqb6UmEIaqfyF/d9KPQAQ/urUvBnCqnLA6pDuoHJq3+B/umJojQRma/Gzp4agC++zb1IR00oySy6Fzjyk7IS8CjG58JLJi4v7gFch8gkg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=lbrQYJCcSm8XhJqNHV4yNKF2fKlWhKlJSmuVa9Byrbq+DET7IBQ/8ssvNGRq3G8wy4kJqOoEY3vFhMZ7zQFzTk8+vEatQsz8m/hlvU4NE3AoXtBJqSZZg4C8UN6mOaXjEe3wcIoeICXz8Q1tzvx3P2BDFqigzA7KGsjpohwzES0= Received: by 10.78.200.20 with SMTP id x20mr3723201huf.1188875299741; Mon, 03 Sep 2007 20:08:19 -0700 (PDT) Received: by 10.78.120.10 with HTTP; Mon, 3 Sep 2007 20:08:19 -0700 (PDT) Message-ID: <22a059a60709032008r48552c42sbed764b9ef9c4f0c@mail.gmail.com> Date: Mon, 3 Sep 2007 20:08:19 -0700 From: "Milinda Pathirage" To: "Apache AXIS C User List" Subject: Re: Issues with the log directory In-Reply-To: <46DCB1F1.5020606@wso2.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_19875_32204594.1188875299705" References: <46DCB1F1.5020606@wso2.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_19875_32204594.1188875299705 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 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: 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 ------=_Part_19875_32204594.1188875299705 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
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 <samisa@wso2.com> 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&nbsp;Web&nbsp;Services&nbsp;Framework/C&nbsp;-&nbsp;Open&nbsp;source&nbsp;C&nbsp;library&nbsp;for&nbsp;providing&nbsp;and&nbsp;consuming&nbsp;Web&nbsp;services "


---------------------------------------------------------------------
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 ------=_Part_19875_32204594.1188875299705--