C# 클래스 org.GraphDefined.Vanaheimr.Hermod.HTTP.HTTPLogger

A HTTP API logger.
파일 보기 프로젝트 열기: Vanaheimr/Hermod

공개 메소드들

메소드 설명
Debug ( String LogEventOrGroupName, LogTargets LogTarget ) : System.Boolean

Start debugging the given log event.

Default_LogHTTPRequest_toConsole ( String Context, String LogEventName, HTTPRequest Request ) : System.Threading.Tasks.Task

A default delegate for logging incoming HTTP requests to console.

Default_LogHTTPRequest_toDisc ( String Context, String LogEventName, HTTPRequest Request ) : System.Threading.Tasks.Task

A default delegate for logging incoming HTTP requests to disc.

Default_LogHTTPResponse_toConsole ( String Context, String LogEventName, HTTPRequest Request, HTTPResponse Response ) : System.Threading.Tasks.Task

A default delegate for logging HTTP requests/-responses to console.

Default_LogHTTPResponse_toDisc ( String Context, String LogEventName, HTTPRequest Request, HTTPResponse Response ) : System.Threading.Tasks.Task

A default delegate for logging HTTP requests/-responses to disc.

HTTPLogger ( HTTPServer HTTPAPI, String Context = "" ) : System

Create a new HTTP API logger using the default logging delegates.

HTTPLogger ( HTTPServer HTTPAPI, String Context, HTTPRequestLoggerDelegate LogHTTPRequest_toConsole, HTTPResponseLoggerDelegate LogHTTPResponse_toConsole, HTTPRequestLoggerDelegate LogHTTPRequest_toDisc, HTTPResponseLoggerDelegate LogHTTPResponse_toDisc, HTTPRequestLoggerDelegate LogHTTPRequest_toNetwork = null, HTTPResponseLoggerDelegate LogHTTPResponse_toNetwork = null, HTTPRequestLoggerDelegate LogHTTPRequest_toHTTPSSE = null, HTTPResponseLoggerDelegate LogHTTPResponse_toHTTPSSE = null, HTTPResponseLoggerDelegate LogHTTPError_toConsole = null, HTTPResponseLoggerDelegate LogHTTPError_toDisc = null, HTTPResponseLoggerDelegate LogHTTPError_toNetwork = null, HTTPResponseLoggerDelegate LogHTTPError_toHTTPSSE = null, Func LogFileCreator = null ) : System

Create a new HTTP API logger using the given logging delegates.

HTTPLogger ( String Context, HTTPRequestLoggerDelegate LogHTTPRequest_toConsole, HTTPResponseLoggerDelegate LogHTTPResponse_toConsole, HTTPRequestLoggerDelegate LogHTTPRequest_toDisc, HTTPResponseLoggerDelegate LogHTTPResponse_toDisc, HTTPRequestLoggerDelegate LogHTTPRequest_toNetwork = null, HTTPResponseLoggerDelegate LogHTTPResponse_toNetwork = null, HTTPRequestLoggerDelegate LogHTTPRequest_toHTTPSSE = null, HTTPResponseLoggerDelegate LogHTTPResponse_toHTTPSSE = null, HTTPResponseLoggerDelegate LogHTTPError_toConsole = null, HTTPResponseLoggerDelegate LogHTTPError_toDisc = null, HTTPResponseLoggerDelegate LogHTTPError_toNetwork = null, HTTPResponseLoggerDelegate LogHTTPError_toHTTPSSE = null, Func LogFileCreator = null ) : System

Create a new HTTP API logger using the given logging delegates.

Undebug ( String LogEventOrGroupName, LogTargets LogTarget ) : System.Boolean

Stop debugging the given log event.

보호된 메소드들

메소드 설명
HTTPLogger ( ) : System

Create a new HTTP API logger using the default logging delegates.

RegisterEvent ( String LogEventName, Action SubscribeToEventDelegate, Action UnsubscribeFromEventDelegate ) : HTTPClientRequestLogger

Register a log event for the linked HTTP API event.

RegisterEvent ( String LogEventName, Action SubscribeToEventDelegate, Action UnsubscribeFromEventDelegate ) : HTTPClientResponseLogger

Register a log event for the linked HTTP API event.

RegisterEvent ( String LogEventName, Action SubscribeToEventDelegate, Action UnsubscribeFromEventDelegate ) : HTTPServerRequestLogger

Register a log event for the linked HTTP API event.

RegisterEvent ( String LogEventName, Action SubscribeToEventDelegate, Action UnsubscribeFromEventDelegate ) : HTTPServerResponseLogger

Register a log event for the linked HTTP API event.

비공개 메소드들

메소드 설명
InternalDebug ( String LogEventName, LogTargets LogTarget ) : System.Boolean
InternalUndebug ( String LogEventName, LogTargets LogTarget ) : System.Boolean
OpenFileWithRetry ( System.Action WorkToDo, System.TimeSpan Timeout = null ) : void

메소드 상세

Debug() 공개 메소드

Start debugging the given log event.
public Debug ( String LogEventOrGroupName, LogTargets LogTarget ) : System.Boolean
LogEventOrGroupName String A log event of group name.
LogTarget LogTargets The log target.
리턴 System.Boolean

Default_LogHTTPRequest_toConsole() 공개 메소드

A default delegate for logging incoming HTTP requests to console.
public Default_LogHTTPRequest_toConsole ( String Context, String LogEventName, HTTPRequest Request ) : System.Threading.Tasks.Task
Context String The context of the log request.
LogEventName String The name of the log event.
Request HTTPRequest The HTTP request to log.
리턴 System.Threading.Tasks.Task

Default_LogHTTPRequest_toDisc() 공개 메소드

A default delegate for logging incoming HTTP requests to disc.
public Default_LogHTTPRequest_toDisc ( String Context, String LogEventName, HTTPRequest Request ) : System.Threading.Tasks.Task
Context String The context of the log request.
LogEventName String The name of the log event.
Request HTTPRequest The HTTP request to log.
리턴 System.Threading.Tasks.Task

Default_LogHTTPResponse_toConsole() 공개 메소드

A default delegate for logging HTTP requests/-responses to console.
public Default_LogHTTPResponse_toConsole ( String Context, String LogEventName, HTTPRequest Request, HTTPResponse Response ) : System.Threading.Tasks.Task
Context String The context of the log request.
LogEventName String The name of the log event.
Request HTTPRequest The HTTP request to log.
Response HTTPResponse The HTTP response to log.
리턴 System.Threading.Tasks.Task

Default_LogHTTPResponse_toDisc() 공개 메소드

A default delegate for logging HTTP requests/-responses to disc.
public Default_LogHTTPResponse_toDisc ( String Context, String LogEventName, HTTPRequest Request, HTTPResponse Response ) : System.Threading.Tasks.Task
Context String The context of the log request.
LogEventName String The name of the log event.
Request HTTPRequest The HTTP request to log.
Response HTTPResponse The HTTP response to log.
리턴 System.Threading.Tasks.Task

HTTPLogger() 보호된 메소드

Create a new HTTP API logger using the default logging delegates.
protected HTTPLogger ( ) : System
리턴 System

HTTPLogger() 공개 메소드

Create a new HTTP API logger using the default logging delegates.
public HTTPLogger ( HTTPServer HTTPAPI, String Context = "" ) : System
HTTPAPI HTTPServer A HTTP API.
Context String A context of this API.
리턴 System

HTTPLogger() 공개 메소드

Create a new HTTP API logger using the given logging delegates.
public HTTPLogger ( HTTPServer HTTPAPI, String Context, HTTPRequestLoggerDelegate LogHTTPRequest_toConsole, HTTPResponseLoggerDelegate LogHTTPResponse_toConsole, HTTPRequestLoggerDelegate LogHTTPRequest_toDisc, HTTPResponseLoggerDelegate LogHTTPResponse_toDisc, HTTPRequestLoggerDelegate LogHTTPRequest_toNetwork = null, HTTPResponseLoggerDelegate LogHTTPResponse_toNetwork = null, HTTPRequestLoggerDelegate LogHTTPRequest_toHTTPSSE = null, HTTPResponseLoggerDelegate LogHTTPResponse_toHTTPSSE = null, HTTPResponseLoggerDelegate LogHTTPError_toConsole = null, HTTPResponseLoggerDelegate LogHTTPError_toDisc = null, HTTPResponseLoggerDelegate LogHTTPError_toNetwork = null, HTTPResponseLoggerDelegate LogHTTPError_toHTTPSSE = null, Func LogFileCreator = null ) : System
HTTPAPI HTTPServer A HTTP API.
Context String A context of this API.
LogHTTPRequest_toConsole HTTPRequestLoggerDelegate A delegate to log incoming HTTP requests to console.
LogHTTPResponse_toConsole HTTPResponseLoggerDelegate A delegate to log HTTP requests/responses to console.
LogHTTPRequest_toDisc HTTPRequestLoggerDelegate A delegate to log incoming HTTP requests to disc.
LogHTTPResponse_toDisc HTTPResponseLoggerDelegate A delegate to log HTTP requests/responses to disc.
LogHTTPRequest_toNetwork HTTPRequestLoggerDelegate A delegate to log incoming HTTP requests to a network target.
LogHTTPResponse_toNetwork HTTPResponseLoggerDelegate A delegate to log HTTP requests/responses to a network target.
LogHTTPRequest_toHTTPSSE HTTPRequestLoggerDelegate A delegate to log incoming HTTP requests to a HTTP server sent events source.
LogHTTPResponse_toHTTPSSE HTTPResponseLoggerDelegate A delegate to log HTTP requests/responses to a HTTP server sent events source.
LogHTTPError_toConsole HTTPResponseLoggerDelegate A delegate to log HTTP errors to console.
LogHTTPError_toDisc HTTPResponseLoggerDelegate A delegate to log HTTP errors to disc.
LogHTTPError_toNetwork HTTPResponseLoggerDelegate A delegate to log HTTP errors to a network target.
LogHTTPError_toHTTPSSE HTTPResponseLoggerDelegate A delegate to log HTTP errors to a HTTP server sent events source.
LogFileCreator Func A delegate to create a log file from the given context and log file name.
리턴 System

HTTPLogger() 공개 메소드

Create a new HTTP API logger using the given logging delegates.
public HTTPLogger ( String Context, HTTPRequestLoggerDelegate LogHTTPRequest_toConsole, HTTPResponseLoggerDelegate LogHTTPResponse_toConsole, HTTPRequestLoggerDelegate LogHTTPRequest_toDisc, HTTPResponseLoggerDelegate LogHTTPResponse_toDisc, HTTPRequestLoggerDelegate LogHTTPRequest_toNetwork = null, HTTPResponseLoggerDelegate LogHTTPResponse_toNetwork = null, HTTPRequestLoggerDelegate LogHTTPRequest_toHTTPSSE = null, HTTPResponseLoggerDelegate LogHTTPResponse_toHTTPSSE = null, HTTPResponseLoggerDelegate LogHTTPError_toConsole = null, HTTPResponseLoggerDelegate LogHTTPError_toDisc = null, HTTPResponseLoggerDelegate LogHTTPError_toNetwork = null, HTTPResponseLoggerDelegate LogHTTPError_toHTTPSSE = null, Func LogFileCreator = null ) : System
Context String A context of this API.
LogHTTPRequest_toConsole HTTPRequestLoggerDelegate A delegate to log incoming HTTP requests to console.
LogHTTPResponse_toConsole HTTPResponseLoggerDelegate A delegate to log HTTP requests/responses to console.
LogHTTPRequest_toDisc HTTPRequestLoggerDelegate A delegate to log incoming HTTP requests to disc.
LogHTTPResponse_toDisc HTTPResponseLoggerDelegate A delegate to log HTTP requests/responses to disc.
LogHTTPRequest_toNetwork HTTPRequestLoggerDelegate A delegate to log incoming HTTP requests to a network target.
LogHTTPResponse_toNetwork HTTPResponseLoggerDelegate A delegate to log HTTP requests/responses to a network target.
LogHTTPRequest_toHTTPSSE HTTPRequestLoggerDelegate A delegate to log incoming HTTP requests to a HTTP server sent events source.
LogHTTPResponse_toHTTPSSE HTTPResponseLoggerDelegate A delegate to log HTTP requests/responses to a HTTP server sent events source.
LogHTTPError_toConsole HTTPResponseLoggerDelegate A delegate to log HTTP errors to console.
LogHTTPError_toDisc HTTPResponseLoggerDelegate A delegate to log HTTP errors to disc.
LogHTTPError_toNetwork HTTPResponseLoggerDelegate A delegate to log HTTP errors to a network target.
LogHTTPError_toHTTPSSE HTTPResponseLoggerDelegate A delegate to log HTTP errors to a HTTP server sent events source.
LogFileCreator Func A delegate to create a log file from the given context and log file name.
리턴 System

RegisterEvent() 보호된 메소드

Register a log event for the linked HTTP API event.
protected RegisterEvent ( String LogEventName, Action SubscribeToEventDelegate, Action UnsubscribeFromEventDelegate ) : HTTPClientRequestLogger
LogEventName String The name of the log event.
SubscribeToEventDelegate Action A delegate for subscribing to the linked event.
UnsubscribeFromEventDelegate Action A delegate for subscribing from the linked event.
리턴 HTTPClientRequestLogger

RegisterEvent() 보호된 메소드

Register a log event for the linked HTTP API event.
protected RegisterEvent ( String LogEventName, Action SubscribeToEventDelegate, Action UnsubscribeFromEventDelegate ) : HTTPClientResponseLogger
LogEventName String The name of the log event.
SubscribeToEventDelegate Action A delegate for subscribing to the linked event.
UnsubscribeFromEventDelegate Action A delegate for subscribing from the linked event.
리턴 HTTPClientResponseLogger

RegisterEvent() 보호된 메소드

Register a log event for the linked HTTP API event.
protected RegisterEvent ( String LogEventName, Action SubscribeToEventDelegate, Action UnsubscribeFromEventDelegate ) : HTTPServerRequestLogger
LogEventName String The name of the log event.
SubscribeToEventDelegate Action A delegate for subscribing to the linked event.
UnsubscribeFromEventDelegate Action A delegate for subscribing from the linked event.
리턴 HTTPServerRequestLogger

RegisterEvent() 보호된 메소드

Register a log event for the linked HTTP API event.
protected RegisterEvent ( String LogEventName, Action SubscribeToEventDelegate, Action UnsubscribeFromEventDelegate ) : HTTPServerResponseLogger
LogEventName String The name of the log event.
SubscribeToEventDelegate Action A delegate for subscribing to the linked event.
UnsubscribeFromEventDelegate Action A delegate for subscribing from the linked event.
리턴 HTTPServerResponseLogger

Undebug() 공개 메소드

Stop debugging the given log event.
public Undebug ( String LogEventOrGroupName, LogTargets LogTarget ) : System.Boolean
LogEventOrGroupName String A log event of group name.
LogTarget LogTargets The log target.
리턴 System.Boolean