Skip to content

Monitoring

Mendel Monteiro-Beckerman edited this page Oct 15, 2020 · 1 revision

Zebus uses log4net and by default will log all messages received in the following format :

01:31:39.583 - INFO - Abc.Zebus.Dispatch || HANDLE: MessageTypeName [3ea95b85-0dac-11eb-98b0-568c7182f79c]

You can log more information by overriding the ToString() method of the message, e.g. :

01:31:39.583 - INFO - Abc.Zebus.Dispatch || HANDLE: MessageTypeName {ToString() output goes here} [3ea95b85-0dac-11eb-98b0-568c7182f79c]

If you would like to filter out specific messages from the log file you can do so by specifying a log4Net filter in your log4Net.config file using the full type name of the message. E.g. :

  <logger name="Your.Message.Full.Type.Name.Here">
    <level value="WARN" />
  </logger>

Clone this wiki locally