Suoranta.EnterpriseLib.Web - Developer API

LogService Members

The LogService type exposes the following members.

Constructors


  Name Description
Public method LogService(Sinks, Sinks)
Initialize new logger

Methods


  Name Description
Public method BeginScope<(Of <<'(TState>)>>)
Protected method Dispose(Boolean)
Public method Dispose()()()()
Protected method EntryMask
Public method Equals(System.Object) (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method IsEnabled
Public method Log<(Of <<'(TState>)>>)
Public method LogDbOperation
Log database-related output (if their logging is enabled)
Public method LogEntity
Log properties of entity object
Public method LogError
Log exception or other (critical) error
Public method LogHighlight
Log short title-style message to output
Public method LogMessage
Log general-purpose message.
Public method LogWarning
Log information that indicates a possible problem or minor error
Protected method MemberwiseClone (Inherited from Object.)
Public method SetColumnWidths
Set text-mode (Console and Trace) table for entity properties column widths in characters
Public method ToString (Inherited from Object.)
Protected method WriteLog
Implementation of saving log entries

Properties


  Name Description
Public property DbCommandLogEnabled
Log SQL commands issued by Entity Framework (default: false)
Public property DefaultFgColor
Base text color for Console Output
Public property DefaultSinks
Output target of non-error messages
Public property ErrorSinks
Output target of error messages
Public property EventLogName
Name of the Windows Event log name associated with this instance
Public property EventSource
Name of the Windows Event log source associated with this instance
Public property LogJsonError
Public property NameColumnWidth
Public property TableRowMaxWidth
Public property TypeColumnWidth
Public property ValueColumnWidth