• 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

Namespace Dapplo.Log

Classes

AbstractLogger

Abstract implementation for ILogger, which safes some time. In general you will only need to implement Write (without exception) as: 1) WriteLine in calls Write after appending a newline. 2) WriteLine with Exception calls WriteLine with the template/parameters and again with the Exception.ToString()

LoggerMapper

The logic for the mapping of loggers

LogInfo

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

LogInfoExtensions

The extensions for making logging easy and flexible

LogSettings

This is to specify global settings for the Log "framework"

LogSource

This defines the "source" (origin) for log statements, it should have a Type or a identifier (string) so it's clear where the log entries come from. In general this should be instanciated with the default constructor without arguments, which takes care of initiating it. For normal .NET 4.5 this uses the Stack to find the type which called the constructor. For other platforms this uses the CallerFilePath, which supplies the source-file.

LogSourceExtensions

The extensions for making logging easy and flexible

NullLogger

An null logger, doesn't log anything! This can be used to shut-up certain LogSources

Interfaces

ILogger

This is the interface used for internal logging. The idea is that you can implement a small wrapper for you favorite logger which implements this interface. Assign it to the HttpExtensionsGlobals.Logger and Dapplo.HttpExtensions will start logger with your class. A TraceLogger implementation is supplied, so you can see some output while your project is in development.

ILoggerConfiguration

Interface for the LoggerConfiguration

Enums

LogLevels

Log level for the log, default(LogLevel) gives None which doesn't log anything LogLevels.None is actually checked internally, before IsLogLevelEnabled.

Back to top Copyright © 2017 Dapplo