Show / Hide Table of Contents

Interface ILogger

A wrapper-interface for logging-related operations. This interface is used internally to assist testing.

Namespace: SuperOffice.Diagnostics
Assembly: SOCore.dll
Syntax
public interface ILogger

Methods

LogError(Exception)

Log en exception as an error.

Declaration
void LogError(Exception ex)
Parameters
Type Name Description
Exception ex

Exception to report.

LogError(Type, String, String)

Create and log an event of type Error to the logging system. This method is a shorthand for creating a log entry and logging it. Use the LogEntry method if you need the more general version.

Declaration
void LogError(Type sourceType, string message, string details)
Parameters
Type Name Description
Type sourceType

Type of object where the event happened

String message

Summary message

String details

Detailed message

LogInformation(Type, String, String, Boolean)

Create and log an event of type Information to the logging system. This method is a shorthand for creating a log entry and logging it. Use the LogEntry method if you need the more general version.

Declaration
void LogInformation(Type sourceType, string message, string details, bool lightLogOutput)
Parameters
Type Name Description
Type sourceType

Type of object where the event happened

String message

Summary message

String details

Detailed message

Boolean lightLogOutput

If lightLogOutput is true, stack trace and environment is not logged as part of the log entry.

LogWarning(Exception)

Log an exception as a warning

Declaration
void LogWarning(Exception ex)
Parameters
Type Name Description
Exception ex

Exception to log as warning.

LogWarning(Type, String, String)

Create and log an event of type Warning to the logging system. This method is a shorthand for creating a log entry and logging it. Use the LogEntry method if you need the more general version.

Declaration
void LogWarning(Type sourceType, string message, string details)
Parameters
Type Name Description
Type sourceType

Type of object where the event happened

String message

Summary message

String details

Detailed message

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top