• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Dapplo.Log
    • AbstractLogger
    • ILogger
    • ILoggerConfiguration
    • LoggerMapper
    • LogInfo
    • LogInfoExtensions
    • LogLevels
    • LogSettings
    • LogSource
    • LogSourceExtensions
    • NullLogger
  • Dapplo.Log.LogFile
    • FileLogger
    • ForwardingLogger
    • IFileLoggerConfiguration
  • Dapplo.Log.Loggers
    • ColorConsoleLogger
    • ConsoleLogger
    • DebugLogger
    • StringWriterLogger
    • TraceLogger
  • Dapplo.Log.XUnit
    • XUnitLogger

Class LogInfoExtensions

The extensions for making logging easy and flexible

Inheritance
System.Object
LogInfoExtensions
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:Dapplo.Log
Assembly:Dapplo.Log.dll
Syntax
public static class LogInfoExtensions

Methods

| Improve this Doc View Source

Write(LogInfo, String, Object[])

This extension method passes the messageTemplate and parameters to the loggers Write method.

Declaration
public static void Write(this LogInfo logInfo, string messageTemplate, params object[] logParameters)
Parameters
Type Name Description
LogInfo logInfo

LogInfo

System.String messageTemplate

string with formatting

System.Object[] logParameters

parameters for the formatting

| Improve this Doc View Source

WriteLine(LogInfo, Exception, String, Object[])

This extension method passes the Exception, messageTemplate and parameters to the loggers WriteLine method.

Declaration
public static void WriteLine(this LogInfo logInfo, Exception exception, string messageTemplate = null, params object[] logParameters)
Parameters
Type Name Description
LogInfo logInfo

LogInfo

System.Exception exception

Exception to log

System.String messageTemplate

string with formatting

System.Object[] logParameters

parameters for the formatting

| Improve this Doc View Source

WriteLine(LogInfo, String, Object[])

This extension method passes the messageTemplate and parameters to the loggers WriteLine method.

Declaration
public static void WriteLine(this LogInfo logInfo, string messageTemplate, params object[] logParameters)
Parameters
Type Name Description
LogInfo logInfo

LogInfo

System.String messageTemplate

string with formatting

System.Object[] logParameters

parameters for the formatting

  • Improve this Doc
  • View Source
Back to top Copyright © 2017 Dapplo