C# Класс Predica.FimCommunication.LogContext

Provides additional information about logged operations, like adding a guid to a group of logs, making them easier to correlate in logs or adding time that passed since context was instantiated
Показать файл Открыть проект

Открытые методы

Метод Описание
Format ( string input ) : string
LogContext ( ) : System
LogContext ( string format ) : System

Initializes LogContext instance with formatting string that will be used to compose formatted messages.

Tokenize ( string input ) : string
TokenizeTime ( string input ) : string
WithConfigFormat ( ) : LogContext

Описание методов

Format() публичный Метод

public Format ( string input ) : string
input string
Результат string

LogContext() публичный Метод

public LogContext ( ) : System
Результат System

LogContext() публичный Метод

Initializes LogContext instance with formatting string that will be used to compose formatted messages.
public LogContext ( string format ) : System
format string Supported plaholders: {message}, {elapsed}, {token}
Результат System

Tokenize() публичный Метод

public Tokenize ( string input ) : string
input string
Результат string

TokenizeTime() публичный Метод

public TokenizeTime ( string input ) : string
input string
Результат string

WithConfigFormat() публичный статический Метод

public static WithConfigFormat ( ) : LogContext
Результат LogContext