Show / Hide Table of Contents

Class HttpContextLogger

Adds extension methods to the HttpContext class in order to log information.

Inheritance
System.Object
HttpContextLogger
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.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Celerik.NetCore.Web
Assembly: cs.temp.dll.dll
Syntax
public static class HttpContextLogger

Methods

LogDebug(HttpContext, HttpContextLoggerConfig)

Writes the diagnostic message including useful HttpContext information at the Debug level.

Declaration
public static void LogDebug(this HttpContext context, HttpContextLoggerConfig config)
Parameters
Type Name Description
HttpContext context

Object with all HTTP-specific information.

HttpContextLoggerConfig config

Log configuration for the HttpContextLoger.

LogDebug(HttpContext, String)

Writes the diagnostic message at the Debug level.

Declaration
public static void LogDebug(this HttpContext context, string message)
Parameters
Type Name Description
HttpContext context

Object with all HTTP-specific information.

System.String message

Log message.

LogError(HttpContext, HttpContextLoggerConfig)

Writes the diagnostic message including useful HttpContext information at the Error level.

Declaration
public static void LogError(this HttpContext context, HttpContextLoggerConfig config)
Parameters
Type Name Description
HttpContext context

Object with all HTTP-specific information.

HttpContextLoggerConfig config

Log configuration for the HttpContextLoger.

LogError(HttpContext, String)

Writes the diagnostic message at the Error level.

Declaration
public static void LogError(this HttpContext context, string message)
Parameters
Type Name Description
HttpContext context

Object with all HTTP-specific information.

System.String message

Log message.

LogInfo(HttpContext, HttpContextLoggerConfig)

Writes the diagnostic message including useful HttpContext information at the Info level.

Declaration
public static void LogInfo(this HttpContext context, HttpContextLoggerConfig config)
Parameters
Type Name Description
HttpContext context

Object with all HTTP-specific information.

HttpContextLoggerConfig config

Log configuration for the HttpContextLoger.

LogInfo(HttpContext, String)

Writes the diagnostic message at the Info level.

Declaration
public static void LogInfo(this HttpContext context, string message)
Parameters
Type Name Description
HttpContext context

Object with all HTTP-specific information.

System.String message

Log message.

LogWarn(HttpContext, HttpContextLoggerConfig)

Writes the diagnostic message including useful HttpContext information at the Warn level.

Declaration
public static void LogWarn(this HttpContext context, HttpContextLoggerConfig config)
Parameters
Type Name Description
HttpContext context

Object with all HTTP-specific information.

HttpContextLoggerConfig config

Log configuration for the HttpContextLoger.

LogWarn(HttpContext, String)

Writes the diagnostic message at the Warn level.

Declaration
public static void LogWarn(this HttpContext context, string message)
Parameters
Type Name Description
HttpContext context

Object with all HTTP-specific information.

System.String message

Log message.

In This Article
Back to top Generated by DocFX