Suoranta.EnterpriseLib.Web - Developer API

LogToDbService<(Of <(<'TLogEntry>)>)> Members

The LogToDbService<(Of <(<'TLogEntry>)>)> type exposes the following members.

Constructors


  Name Description
Public method LogToDbService<(Of <(<'TLogEntry>)>)>
Instantiate logger backed by Entity Framework

Methods


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

Properties


  Name Description
Public property DbCommandLogEnabled
Log SQL commands issued by Entity Framework (default: false)
(Inherited from LogService.)
Public property DbEntriesCacheSize
Send log entries to database when this number of entries are pending in cache
Public property DefaultFgColor
Base text color for Console Output
(Inherited from LogService.)
Public property DefaultSinks
Output target of non-error messages
(Inherited from LogService.)
Public property ErrorSinks
Output target of error messages
(Inherited from LogService.)
Public property EventLogName
Name of the Windows Event log name associated with this instance
(Inherited from LogService.)
Public property EventSource
Name of the Windows Event log source associated with this instance
(Inherited from LogService.)
Public property LogJsonError (Inherited from LogService.)
Public property NameColumnWidth (Inherited from LogService.)
Public property TableRowMaxWidth (Inherited from LogService.)
Public property TypeColumnWidth (Inherited from LogService.)
Public property ValueColumnWidth (Inherited from LogService.)

Events


  Name Description
Public event LogDbEntryCreated
Hook custom delegate here to define action when log entries are created