Skip to content

Logging library used in projects created by the Code Generator tool.

License

Notifications You must be signed in to change notification settings

Tolitech/CodeGenerator.Logging

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tolitech.CodeGenerator.Logging

Logging library used in projects created by the Code Generator tool.

This project contains abstract classes for implementing and customizing logging providers.

Tolitech Code Generator Tool: http://www.tolitech.com.br

Examples:

public class LogProvider : LoggerProvider
{
    public override bool IsEnabled(LogLevel logLevel)
    {
        return true;
    }

    public override void WriteLog(LogEntry Info)
    {
        Console.WriteLine($"ActionName = {Info.ActionName}");
        Console.WriteLine($"Category = {Info.Category}");
        Console.WriteLine($"FilePath = {Info.FilePath}");
        Console.WriteLine($"LineNumber = {Info.LineNumber}");
        Console.WriteLine($"UserName = {Info.UserName}");
        Console.WriteLine($"HostName = {LogEntry.HostName}");
    }
}

About

Logging library used in projects created by the Code Generator tool.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages