Show / Hide Table of Contents

Class Logger

Defines a static wrapper class for enabling easy logging through the encapsulated ILogger instance.

Inheritance
System.Object
Logger
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Juhta.Net.Diagnostics
Assembly: Juhta.Net.dll
Syntax
public static class Logger
Remarks

This class is also capable for serializing concurrent access to non-thread-safe ILogger instances. In other words, this class is thread-safe excluding the SetLogger(ILogger) method.

All exceptions thrown by the underlying ILogger instance will be caught without handling, so no exceptions will be thrown by the class.

Methods

| Improve this Doc View Source

LogAlert(AlertMessage)

See LogAlert(AlertMessage).

Declaration
public static void LogAlert(AlertMessage message)
Parameters
Type Name Description
AlertMessage message
| Improve this Doc View Source

LogAlert(AlertMessage, Object[])

See LogAlert(AlertMessage, Object[]).

Declaration
public static void LogAlert(AlertMessage message, params object[] args)
Parameters
Type Name Description
AlertMessage message
System.Object[] args
| Improve this Doc View Source

LogAlert(String)

See LogAlert(String).

Declaration
public static void LogAlert(string message)
Parameters
Type Name Description
System.String message
| Improve this Doc View Source

LogAlert(String, Object[])

See LogAlert(String, Object[]).

Declaration
public static void LogAlert(string messageFormat, params object[] args)
Parameters
Type Name Description
System.String messageFormat
System.Object[] args
| Improve this Doc View Source

LogError(ErrorMessage)

See LogError(ErrorMessage).

Declaration
public static void LogError(ErrorMessage message)
Parameters
Type Name Description
ErrorMessage message
| Improve this Doc View Source

LogError(ErrorMessage, Object[])

See LogError(ErrorMessage, Object[]).

Declaration
public static void LogError(ErrorMessage message, params object[] args)
Parameters
Type Name Description
ErrorMessage message
System.Object[] args
| Improve this Doc View Source

LogError(Exception)

See LogError(Exception).

Declaration
public static void LogError(Exception exception)
Parameters
Type Name Description
System.Exception exception
| Improve this Doc View Source

LogError(Exception, ErrorMessage)

See LogError(Exception, ErrorMessage).

Declaration
public static void LogError(Exception exception, ErrorMessage message)
Parameters
Type Name Description
System.Exception exception
ErrorMessage message
| Improve this Doc View Source

LogError(Exception, ErrorMessage, Object[])

See LogError(Exception, ErrorMessage, Object[]).

Declaration
public static void LogError(Exception exception, ErrorMessage message, params object[] args)
Parameters
Type Name Description
System.Exception exception
ErrorMessage message
System.Object[] args
| Improve this Doc View Source

LogError(Exception, String)

See LogError(Exception, String).

Declaration
public static void LogError(Exception exception, string message)
Parameters
Type Name Description
System.Exception exception
System.String message
| Improve this Doc View Source

LogError(Exception, String, Object[])

See LogError(Exception, String, Object[]).

Declaration
public static void LogError(Exception exception, string messageFormat, params object[] args)
Parameters
Type Name Description
System.Exception exception
System.String messageFormat
System.Object[] args
| Improve this Doc View Source

LogError(String)

See LogError(String).

Declaration
public static void LogError(string message)
Parameters
Type Name Description
System.String message
| Improve this Doc View Source

LogError(String, Object[])

See LogError(String, Object[]).

Declaration
public static void LogError(string messageFormat, params object[] args)
Parameters
Type Name Description
System.String messageFormat
System.Object[] args
| Improve this Doc View Source

LogEvent(DiagnosticMessage)

See LogEvent(DiagnosticMessage).

Declaration
public static void LogEvent(DiagnosticMessage message)
Parameters
Type Name Description
DiagnosticMessage message
| Improve this Doc View Source

LogEvent(DiagnosticMessage, Object[])

See LogEvent(DiagnosticMessage, Object[]).

Declaration
public static void LogEvent(DiagnosticMessage message, params object[] args)
Parameters
Type Name Description
DiagnosticMessage message
System.Object[] args
| Improve this Doc View Source

LogInformation(InformationMessage)

See LogInformation(InformationMessage).

Declaration
public static void LogInformation(InformationMessage message)
Parameters
Type Name Description
InformationMessage message
| Improve this Doc View Source

LogInformation(InformationMessage, Object[])

See LogInformation(InformationMessage, Object[]).

Declaration
public static void LogInformation(InformationMessage message, params object[] args)
Parameters
Type Name Description
InformationMessage message
System.Object[] args
| Improve this Doc View Source

LogInformation(String)

See LogInformation(String).

Declaration
public static void LogInformation(string message)
Parameters
Type Name Description
System.String message
| Improve this Doc View Source

LogInformation(String, Object[])

See LogInformation(String, Object[]).

Declaration
public static void LogInformation(string messageFormat, params object[] args)
Parameters
Type Name Description
System.String messageFormat
System.Object[] args
| Improve this Doc View Source

LogWarning(WarningMessage)

See LogWarning(WarningMessage).

Declaration
public static void LogWarning(WarningMessage message)
Parameters
Type Name Description
WarningMessage message
| Improve this Doc View Source

LogWarning(WarningMessage, Object[])

See LogWarning(WarningMessage, Object[]).

Declaration
public static void LogWarning(WarningMessage message, params object[] args)
Parameters
Type Name Description
WarningMessage message
System.Object[] args
| Improve this Doc View Source

LogWarning(String)

See LogWarning(String).

Declaration
public static void LogWarning(string message)
Parameters
Type Name Description
System.String message
| Improve this Doc View Source

LogWarning(String, Object[])

See LogWarning(String, Object[]).

Declaration
public static void LogWarning(string messageFormat, params object[] args)
Parameters
Type Name Description
System.String messageFormat
System.Object[] args
| Improve this Doc View Source

SetLogger(ILogger)

Sets an ILogger instance into the class.

Declaration
public static void SetLogger(ILogger logger)
Parameters
Type Name Description
ILogger logger

Specifies an ILogger object.

  • Improve this Doc
  • View Source
Back to top Copyright © 2017-2019 Juha Lähteenmäki
Generated by DocFX