C# Class 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
Afficher le fichier Open project: Predica/FimClient

Méthodes publiques

Méthode Description
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

Method Details

Format() public méthode

public Format ( string input ) : string
input string
Résultat string

LogContext() public méthode

public LogContext ( ) : System
Résultat System

LogContext() public méthode

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}
Résultat System

Tokenize() public méthode

public Tokenize ( string input ) : string
input string
Résultat string

TokenizeTime() public méthode

public TokenizeTime ( string input ) : string
input string
Résultat string

WithConfigFormat() public static méthode

public static WithConfigFormat ( ) : LogContext
Résultat LogContext