[RADIATOR] Store 'LogFormat' in varaible
Hugh Irvine
hugh at radiatorsoftware.com
Fri Sep 15 05:22:47 UTC 2023
Hello Jan -
You could also try this:
DefineFormattedGlobalVar LogFormatDefinition
[%%Y-%%m-%%dT%%H:%%M:%%S.%%s] [%%O] [%%3] [%%1] %%2
The first % character is used to escape the second one.
Let me know if it works - I haven't tested it.
regards
Hugh
On 14/9/2023 22:41, Jan Bělina wrote:
>
> In that variant, special formaters are translated at compile time and
> every line in log looks like this:
>
> [2023-09-14T14:37:23.628949] [0] [] []
> [2023-09-14T14:37:23.628949] [0] [] []
> [2023-09-14T14:37:23.628949] [0] [] []
> [2023-09-14T14:37:23.628949] [0] [] []
> ...
>
> It looks like simple thing, but it is complicated. Fortunately, it's
> nothing major :-)
>
>
> Regards
>
> Jan Belina
>
>
> Dne 14. 09. 23 v 13:19 Hugh Irvine napsal(a):
>> LogFormat %{GlobalVar:LogFormatDefinition}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.open.com.au/pipermail/radiator/attachments/20230915/4611342d/attachment.html>
More information about the radiator
mailing list