Provides methods for writing log.
Inheritance Hierarchy
SystemObject
Casewhere.Infrastructure.LoggingLog
Namespace: Casewhere.Infrastructure.LoggingAssembly: Casewhere.Infrastructure.Logging (in Casewhere.Infrastructure.Logging.dll) Version: 1.0.0.0 (1.0.0.0)
SyntaxThe Log type exposes the following members.
Properties
Methods | Name | Description |
---|
  | BeginContext | |
  | Debug(String) |
Write a log event with the Debug level.
|
  | Debug(String, Object) |
Write a log event with the Debug level.
|
  | Debug(Exception, String, Object) |
Write a log event with the Debug level and associated exception.
|
  | Error(String) |
Write a log event with the Error level.
|
  | Error(String, Object) |
Write a log event with the Error level.
|
  | Error(Exception, String, Object) |
Write a log event with the Error level and associated exception.
|
  | Fatal(String) |
Write a log event with the Fatal level.
|
  | Fatal(String, Object) |
Write a log event with the Fatal level.
|
  | Fatal(Exception, String, Object) |
Write a log event with the Fatal level and associated exception.
|
  | For(Type) | |
  | ForT | |
  | Info(String) |
Write a log event with the Information level.
|
  | Info(String, Object) |
Write a log event with the Information level.
|
  | Info(Exception, String, Object) |
Write a log event with the Information level and associated exception.
|
  | SetSystemLogWriteProtector | |
  | Use | |
  | Verbose(String) |
Write a log event with the Verbose level.
|
  | Verbose(String, Object) |
Write a log event with the Verbose level.
|
  | Verbose(Exception, String, Object) |
Write a log event with the Verbose level and associated exception.
|
  | Warning(String) |
Write a log event with the Warning level.
|
  | Warning(String, Object) |
Write a log event with the Warning level.
|
  | Warning(Exception, String, Object) |
Write a log event with the Warning level and associated exception.
|
Top
Fields
Remarks
We use
Serilog. Please look
here for logging best practices.
ExampleLog.Error(exception, "An error has occurred when querying data objects.");
Log.Info("Found an Employee {Employee} in Department {Department}", employee, department);
See Also