using eneter.trace; // ... try { // Some code that may throw an exception. } catch (Exception ex) { EneterTrace.Error("MyClass.MyMethod", ex); }
using eneter.trace; // ... EneterTrace.Debug("Starting method MyClass.MyMethod"); // Code ... EneterTrace.Debug("Exiting method MyClass.MyMethod");In this example, EneterTrace.Debug is used to log trace information during the execution of a method, including when the method is entered and exited. Package library: Eneter.Trace.