Show / Hide Table of Contents

Interface ILogger

Interface representing a loggerFactory

Namespace:Intranet.Common
Assembly:Intranet.Common.dll
Syntax
public interface ILogger

Properties

| Improve this Doc View Source

DefaultLevel

Gets or sets the default log level

Declaration
LogLevel DefaultLevel { get; set; }
Property Value
Type Description
LogLevel

The default log level

| Improve this Doc View Source

IsDebugEnabled

Gets a value indicating whether logging is enabled for the Debug level.

Declaration
bool IsDebugEnabled { get; }
Property Value
Type Description
System.Boolean

A value of true if logging is enabled for the Debug level, otherwise it returns false.

| Improve this Doc View Source

IsErrorEnabled

Gets a value indicating whether logging is enabled for the Error level.

Declaration
bool IsErrorEnabled { get; }
Property Value
Type Description
System.Boolean

A value of true if logging is enabled for the Error level, otherwise it returns false.

| Improve this Doc View Source

IsFatalEnabled

Gets a value indicating whether logging is enabled for the Fatal level.

Declaration
bool IsFatalEnabled { get; }
Property Value
Type Description
System.Boolean

A value of true if logging is enabled for the Fatal level, otherwise it returns false.

| Improve this Doc View Source

IsInfoEnabled

Gets a value indicating whether logging is enabled for the Info level.

Declaration
bool IsInfoEnabled { get; }
Property Value
Type Description
System.Boolean

A value of true if logging is enabled for the Info level, otherwise it returns false.

| Improve this Doc View Source

IsWarnEnabled

Gets a value indicating whether logging is enabled for the Warn level.

Declaration
bool IsWarnEnabled { get; }
Property Value
Type Description
System.Boolean

A value of true if logging is enabled for the Warn level, otherwise it returns false.

Methods

| Improve this Doc View Source

Debug(Func<String>)

Writes the diagnostic message at the Debug level.

Declaration
void Debug(Func<string> messageFunc)
Parameters
Type Name Description
System.Func<System.String> messageFunc

A function returning message to be written. Function is not evaluated if logging is not enabled.

| Improve this Doc View Source

Debug(String)

Writes the diagnostic message at the Debug level.

Declaration
void Debug(string message)
Parameters
Type Name Description
System.String message

The message to log

| Improve this Doc View Source

Error(Func<String>)

Writes the diagnostic message at the Error level.

Declaration
void Error(Func<string> messageFunc)
Parameters
Type Name Description
System.Func<System.String> messageFunc

A function returning message to be written. Function is not evaluated if logging is not enabled.

| Improve this Doc View Source

Error(String)

Writes the diagnostic message at the Error level.

Declaration
void Error(string message)
Parameters
Type Name Description
System.String message

The message to log

| Improve this Doc View Source

Fatal(Func<String>)

Writes the diagnostic message at the Fatal level.

Declaration
void Fatal(Func<string> messageFunc)
Parameters
Type Name Description
System.Func<System.String> messageFunc

A function returning message to be written. Function is not evaluated if logging is not enabled.

| Improve this Doc View Source

Fatal(String)

Writes the diagnostic message at the Fatal level.

Declaration
void Fatal(string message)
Parameters
Type Name Description
System.String message

The message to log

| Improve this Doc View Source

Info(Func<String>)

Writes the diagnostic message at the Info level.

Declaration
void Info(Func<string> messageFunc)
Parameters
Type Name Description
System.Func<System.String> messageFunc

A function returning message to be written. Function is not evaluated if logging is not enabled.

| Improve this Doc View Source

Info(String)

Writes the diagnostic message at the Info level.

Declaration
void Info(string message)
Parameters
Type Name Description
System.String message

The message to log

| Improve this Doc View Source

Log(Func<String>)

Writes the diagnostic message at the default level.

Declaration
void Log(Func<string> messageFunc)
Parameters
Type Name Description
System.Func<System.String> messageFunc

A function returning message to be written. Function is not evaluated if logging is not enabled.

| Improve this Doc View Source

Log(String)

Writes the diagnostic message at the default level.

Declaration
void Log(string message)
Parameters
Type Name Description
System.String message

The message to log.

| Improve this Doc View Source

Log(String, LogLevel)

Writes the diagnostic message at the specified level.

Declaration
void Log(string message, LogLevel level)
Parameters
Type Name Description
System.String message

The message to log.

LogLevel level

The log level.

| Improve this Doc View Source

Trace(Func<String>)

Writes the diagnostic message at the Trace level.

Declaration
void Trace(Func<string> messageFunc)
Parameters
Type Name Description
System.Func<System.String> messageFunc

A function returning message to be written. Function is not evaluated if logging is not enabled.

| Improve this Doc View Source

Trace(String)

Writes the diagnostic message at the Trace level.

Declaration
void Trace(string message)
Parameters
Type Name Description
System.String message

The message to log

| Improve this Doc View Source

Warn(Func<String>)

Writes the diagnostic message at the Warn level.

Declaration
void Warn(Func<string> messageFunc)
Parameters
Type Name Description
System.Func<System.String> messageFunc

A function returning message to be written. Function is not evaluated if logging is not enabled.

| Improve this Doc View Source

Warn(String)

Writes the diagnostic message at the Warn level.

Declaration
void Warn(string message)
Parameters
Type Name Description
System.String message

The message to log

  • Improve this Doc
  • View Source
Back to top Copyright © 2015-2016 Microsoft
Generated by DocFX