[ 
https://issues.apache.org/jira/browse/TS-4741?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15417572#comment-15417572
 ] 

Leif Hedstrom commented on TS-4741:
-----------------------------------

Maybe this can be piggybacked somehow of the future plumbing of the Lua 
Scriptles (what I call "Lua Crooks" :-)? Basically, attach a co-routine from a 
logging State to the HttpSM? Or some such.

> Emit logs with native Lua functions
> -----------------------------------
>
>                 Key: TS-4741
>                 URL: https://issues.apache.org/jira/browse/TS-4741
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: Logging
>            Reporter: James Peach
>             Fix For: sometime
>
>
> Starting with TS-4548, we have Lua configuration for setting up logging 
> objects. The next step is to find a way to let operators write a Lua function 
> to generate the actual log lines. This would let you perform log filtering, 
> etc. in Lua and make arbitrary calls to Lua functions when generating the log 
> entries.
> To get this to work, the main challenges are Lua state management (one state 
> per loggin thread maybe? how would config reload work?) and the API around 
> exposing logging tags (magic table indexes named after the tags?).



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

Reply via email to