Return-Path: X-Original-To: apmail-trafficserver-users-archive@www.apache.org Delivered-To: apmail-trafficserver-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BBFFE1804A for ; Thu, 3 Sep 2015 20:33:10 +0000 (UTC) Received: (qmail 18980 invoked by uid 500); 3 Sep 2015 20:33:10 -0000 Delivered-To: apmail-trafficserver-users-archive@trafficserver.apache.org Received: (qmail 18912 invoked by uid 500); 3 Sep 2015 20:33:10 -0000 Mailing-List: contact users-help@trafficserver.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@trafficserver.apache.org Delivered-To: mailing list users@trafficserver.apache.org Received: (qmail 18902 invoked by uid 99); 3 Sep 2015 20:33:10 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Sep 2015 20:33:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 0E4F0C0826 for ; Thu, 3 Sep 2015 20:33:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.898 X-Spam-Level: ** X-Spam-Status: No, score=2.898 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 9g5y2BnHq2r8 for ; Thu, 3 Sep 2015 20:33:08 +0000 (UTC) Received: from mail-io0-f178.google.com (mail-io0-f178.google.com [209.85.223.178]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 7274220647 for ; Thu, 3 Sep 2015 20:33:08 +0000 (UTC) Received: by iofh134 with SMTP id h134so1529302iof.0 for ; Thu, 03 Sep 2015 13:33:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=6LKLO4zoZn9v9LlcLe+e3EV+ynHkKQW5+ZfYBVZlJlw=; b=waPiD1Ie/C9jHIy3I5tYaG4KK1McGYmPQkgmckHZbBoWuyJODac9CziW9xqNfiRnMv utp1FFwqWgp9h7AOUBIew42/YGvqGrdGV1Pv4+ydgJpSh49pDhoyReSvT+KHZ/3hGaRW Dd9L3kAMxep9gfQ6Zz/huWAAX8Gd7atBYEmZN1nGkBr8RZC9xQ1C5E5bG+xnUI5PV3/I KRVr6gOIAVkS2s7OReshw7bP0s1YtlfmeYXBA/+mg5t+Bvjlpn5krKApoRMRgg5Yu8nR O50FR6R9+NcmLjp3cGL6AwHEfXk6fRYyKXzy1EP0a4LrxfHktnTLFRSWtOT/bnC8FImP PXJQ== MIME-Version: 1.0 X-Received: by 10.107.6.209 with SMTP id f78mr2137275ioi.194.1441312387802; Thu, 03 Sep 2015 13:33:07 -0700 (PDT) Received: by 10.107.40.136 with HTTP; Thu, 3 Sep 2015 13:33:07 -0700 (PDT) In-Reply-To: References: Date: Thu, 3 Sep 2015 13:33:07 -0700 Message-ID: Subject: Re: Logfiles From: Shu Kit Chan To: "users@trafficserver.apache.org" Content-Type: multipart/alternative; boundary=001a113f98a4e2acf8051eddb086 --001a113f98a4e2acf8051eddb086 Content-Type: text/plain; charset=UTF-8 Also I will not recommend io.write in lua for these kinds of logging/debugging purposes. Better to leverage ats pre-existing mechanism as much as possible for those purposes when it comes to system resource usage. Thanks. Kit On Thu, Sep 3, 2015 at 1:11 PM, James Peach wrote: > > > On Sep 3, 2015, at 12:17 PM, Vishwas Manral > wrote: > > > > Hi Kit, > > > > I did set as you mentioned: > > CONFIG proxy.config.output.logfile STRING olog.out > > > > The part which I think I wanted was to be able to send different files > for logging and debugging. How can I do that? > > There is no way to do that. I expect you can come close by sending debug > to stderr (E) and logging to the logfile (L). > > > If I use io.write into a file would that work (hoping it does not write > into a file immediately but only on flush)? > > > > Thanks, > > Vishwas > > > > On Thu, Sep 3, 2015 at 11:49 AM, Shu Kit Chan > wrote: > > You can check out these config options here - > > > > > https://docs.trafficserver.apache.org/en/latest/reference/configuration/records.config.en.html#diagnostic-logging-configuration > > > https://docs.trafficserver.apache.org/en/latest/reference/configuration/records.config.en.html#proxy-config-output-logfile > > > > proxy.config.diags.output.debug is not used to define the file name of > the log. The possible values are O, E, S, L > > > > you can change proxy.config.output.logfile to other file name you like. > > > > Thanks. > > > > Kit > > > > On Thu, Sep 3, 2015 at 11:21 AM, Vishwas Manral > wrote: > > Hi ATS-gurus, > > > > I am using the tslua plugin. I had a few questions that I am stuck with: > > > > 1. In the records.config file I use the following: > > > > CONFIG proxy.config.output.logfile STRING olog.out > > CONFIG proxy.config.diags.output.debug STRING odebug.out > > > > However it seems all the messages I inject as ts.debug go to olog.out. > How can we send strings to odebug.out > > > > 2. Are there others ways to send logfiles to different logfiles? > > > > Thanks, > > Vishwas > > > > > > > > --001a113f98a4e2acf8051eddb086 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Also I will not recommend io.write in lua for th= ese kinds of logging/debugging purposes.
Better to leverage ats p= re-existing mechanism as much as possible for those purposes when it comes = to system resource usage.

Thanks.

Kit

On = Thu, Sep 3, 2015 at 1:11 PM, James Peach <jpeach@apache.org>= wrote:

> On Sep 3, 2015, at 12:17 PM, Vishwas Manral <vishwas.ietf@gmail.com> wrote:
>
> Hi Kit,
>
> I did set as you mentioned:
> CONFIG proxy.config.output.logfile STRING olog.out
>
> The part which I think I wanted was to be able to send different files= for logging and debugging. How can I do that?

There is no way to do that. I expect you can come close by sending d= ebug to stderr (E) and logging to the logfile (L).

> If I use io.write into a file would that work (hoping it does not writ= e into a file immediately but only on flush)?
>
> Thanks,
> Vishwas
>
> On Thu, Sep 3, 2015 at 11:49 AM, Shu Kit Chan <chanshukit@gmail.com> wrote:
> You can check out these config options here -
>
> https://docs.trafficserver.apache.org/en/= latest/reference/configuration/records.config.en.html#diagnostic-logging-co= nfiguration
> https://docs.trafficserver.apache.org/en/latest/= reference/configuration/records.config.en.html#proxy-config-output-logfile<= /a>
>
> proxy.config.diags.output.debug is not used to define the file name of= the log. The possible values are O, E, S, L
>
> you can change proxy.config.output.logfile to other file name you like= .
>
> Thanks.
>
> Kit
>
> On Thu, Sep 3, 2015 at 11:21 AM, Vishwas Manral <
vishwas.ietf@gmail.com> wrote:
> Hi ATS-gurus,
>
> I am using the tslua plugin. I had a few questions that I am stuck wit= h:
>
> 1. In the records.config file I use the following:
>
> CONFIG proxy.config.output.logfile STRING olog.out
> CONFIG proxy.config.diags.output.debug STRING odebug.out
>
> However it seems all the messages I inject as ts.debug go to olog.out.= How can we send strings to odebug.out
>
> 2.=C2=A0 Are there others ways to send logfiles to different logfiles?=
>
> Thanks,
> Vishwas
>
>
>


--001a113f98a4e2acf8051eddb086--