Skip to content

[Question] Timestamp format on json template #18

Closed
VelvetToroyashi/Silk
#200
@josemnbcamacho

Description

@josemnbcamacho

Hi,

I'm trying to use a timestamp formatter in a json template like

"{ {timestamp: @t:o, level: @l, sourceContext: SourceContext, message: @m} }\n"

Can't manage to get the formatted timestamp, it seems that the parser is not expecting the ":" after "@t".

Is this something supported?

Regards,
José

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions