You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "James Peach (JIRA)" <ji...@apache.org> on 2016/08/17 22:33:21 UTC

[jira] [Updated] (TS-4761) Let the Lua format() function accept a single string

     [ https://issues.apache.org/jira/browse/TS-4761?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Peach updated TS-4761:
----------------------------
    Description: 
In {{logging.config}}, the {{format}} option to the {{log.binary}} functions can be a string or a LogFormat object returned from the {{format()}} function. It would be convenient to let {{format()}} take a string rather than a table to simplify the common case of non-interval formats.

This:
{noformat}
foo = format("my string")
{noformat}

rather than this:
{noformat}
foo = format{ Format = "my string" }
{noformat}

  was:
In {{logging.config}}, the {{format}} option to the {{log.binary}} functions can be a string or a LogFormat object returned from the {{format()}} function. It would be convenient to let {{format()}} take a string rather than a table to simplify the common case of non-interval formats.

Rather than thi


> Let the Lua format() function accept a single string
> ----------------------------------------------------
>
>                 Key: TS-4761
>                 URL: https://issues.apache.org/jira/browse/TS-4761
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: Logging, Lua
>            Reporter: James Peach
>
> In {{logging.config}}, the {{format}} option to the {{log.binary}} functions can be a string or a LogFormat object returned from the {{format()}} function. It would be convenient to let {{format()}} take a string rather than a table to simplify the common case of non-interval formats.
> This:
> {noformat}
> foo = format("my string")
> {noformat}
> rather than this:
> {noformat}
> foo = format{ Format = "my string" }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)