• 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 LogInfo

A simple wrapper for some information which is passed to the logger

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

Properties

| Improve this Doc View Source

Line

The line of the log

Declaration
public int Line { get; set; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

LogLevel

The LogLevels enum for the log

Declaration
public LogLevels LogLevel { get; set; }
Property Value
Type Description
LogLevels
| Improve this Doc View Source

Method

Method in the Caller (class) from where the log statement came

Declaration
public string Method { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Source

Class from where the log statement came

Declaration
public LogSource Source { get; set; }
Property Value
Type Description
LogSource
| Improve this Doc View Source

Timestamp

Timestamp for the log

Declaration
public DateTimeOffset Timestamp { get; }
Property Value
Type Description
System.DateTimeOffset

Methods

| Improve this Doc View Source

ToString()

Create a string representation of the LogInfo, this by default has a timestamp, level, source, method and line. If the format needs to be changed, LogSettings.LogInfoFormatter can be assigned with your custom formatter Func

Declaration
public override string ToString()
Returns
Type Description
System.String

string

Overrides
System.Object.ToString()

Extension Methods

LogInfoExtensions.Write(LogInfo, String, Object[])
LogInfoExtensions.WriteLine(LogInfo, String, Object[])
LogInfoExtensions.WriteLine(LogInfo, Exception, String, Object[])
  • Improve this Doc
  • View Source
Back to top Copyright © 2017 Dapplo