EZTraceLog 1.0.0

dotnet add package EZTraceLog --version 1.0.0                
NuGet\Install-Package EZTraceLog -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="EZTraceLog" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EZTraceLog --version 1.0.0                
#r "nuget: EZTraceLog, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install EZTraceLog as a Cake Addin
#addin nuget:?package=EZTraceLog&version=1.0.0

// Install EZTraceLog as a Cake Tool
#tool nuget:?package=EZTraceLog&version=1.0.0                

Sample

// set the log file path and file Name
TraceLog.SetLogFile("D:\AppData\Log"), "TestLogConsole");

TraceLog.InfoWrite("main", "Start Process");

TraceLog.DebugWrite("methodName", "This is debug log");

TraceLog.WarnWrite("className", "This is warn log");

TraceLog.ErrorWrite("canTypeAnything", "This is error log");

TraceLog.InfoWrite("main", "End Process");

Result

D:\AppData\Log\TestLogConsole.2018-06-11.log

17:22:45.670 [main      ][INFO ] Start Process
17:22:45.671 [methodName][DEBUG] This is debug log
17:22:45.671 [className ][WARN ] This is warn log
17:22:45.671 [canTypeAnything][ERROR] This is error log
17:22:45.671 [main      ][INFO ] End Process

You can send error message when ErrorWrite

public interface IMsgSender
{
	bool Send(string title, string message);
}

public class MySmtpSender : IMsgSender
{
	public bool Send(string title, string message)
	{
		// to send mail 
	}
}

public void main()
{
	MySmtpSender mySmtpSender = new MySmtpSender();
	TraceLog.ErrMsgSender = mySmtpSender;
}

Product Compatible and additional computed target framework versions.
.NET Framework net452 is compatible.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 1,081 6/12/2018