DiamondLightSource / logpanel

Graylog frontend that displays aggregated, streaming logs for multiple services
Apache License 2.0
1 stars 0 forks source link

Pattern Layout #10

Open TBThomas56 opened 5 months ago

callumforrester commented 5 months ago

@Mark-Booth and @joeshannon I think this is the pattern behaviour of the GDA logpanel. Would you be able to describe it here?

joeshannon commented 5 months ago

In GDA each logback appender has a pattern. Appenders writing to an output stream (e.g. file or console) have an encoder and pattern.

The appender sending messages to the logpanels does not though as it is a ServerSocketAppender and the events are serialised (with Java serialisation) and sent to the receiver in the logpanel.

The logpanel then has a variety of patterns that can be used for displaying the messages. These can be found in the LoggingEventFormat class in gda-logpanel.

callumforrester commented 5 months ago

So I guess we have to deal with the fact that different applications are going to submit different patterns to graylog