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} 
_______________________________________________
radiator mailing list
radiator@lists.open.com.au
https://lists.open.com.au/mailman/listinfo/radiator

Reply via email to