Skip to content
Christian Luksch edited this page Jul 8, 2022 · 4 revisions

Here is a short summary how the Aardvark logging works and can be configured:

  • In Aardvark.Base there is the static class Report which is used to log something and logging can be configured
  • The log output is defined by Report.Targets which is a MultiLogTarget and has a ConsoleLogTarget and LogTarget (log file) as default
  • Report.LogFileName sets the file for the LogTarget and the default is "Aardvark.log" right next to the startup location (needs to be set before first log output)
  • Report.Verbosity lets you control the verbosity of ConsoleLogTarget (in general each log target has its own verbosity)
  • You can add/remove targets as you like
  • A target needs to implement ILogTarget to for example redirect the Aardvark logging to another output
Clone this wiki locally