Difference between revisions of "Serilog"
(→NewFeatures) |
(→Example) |
||
| Line 76: | Line 76: | ||
=Example= | =Example= | ||
| − | Exemplary values to get Customizing | + | Exemplary values to get Customizing log message using Who-Bert: |
| + | |||
| + | |||
| + | using System; | ||
| + | using System.Windows.Forms; | ||
| + | using UBIK.Kernel; | ||
| + | using UBIK.Compiler; | ||
| + | using System.Linq; | ||
| + | using System.Collections.Generic; | ||
| + | |||
| + | namespace Studio | ||
| + | { | ||
| + | public class ObjectTest | ||
| + | { | ||
| + | public void TestObject (params BaseClass[] InVariables) | ||
| + | { | ||
| + | |||
| + | //Example using static class debugger | ||
| + | Debugger.Output(this, "*** Started"); | ||
| + | foreach (BaseClass obj in InVariables) | ||
| + | { | ||
| + | |||
| + | |||
| + | |||
| + | // LogCustomizing | ||
| + | UBIK.Kernel.UBIKKernel.LogCustomizing(System.Reflection.MethodBase.GetCurrentMethod(), "TEST"); | ||
| + | |||
| + | |||
| + | Debugger.Output(this, obj.Name + " " + obj.Description); | ||
| + | } | ||
| + | Debugger.Output(this, "*** Finished"); | ||
| + | } | ||
| + | } | ||
| + | } | ||
| + | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Revision as of 07:24, 22 June 2020
Serilog is a portable and structured logging framework to record diagnostic logs into files, console and SQL/NoSQL databases.
