BlueColor.TestLog 0.0.3

Add "BcLog.GetLogger" Static Method(返回日志记录器-指定日志文件名)

Install-Package BlueColor.TestLog -Version 0.0.3
dotnet add package BlueColor.TestLog --version 0.0.3
<PackageReference Include="BlueColor.TestLog" Version="0.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BlueColor.TestLog --version 0.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

eg:

using System;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            var result = BlueColor.TestLog.HelloWorld.SayHello("世界");
            Console.WriteLine(result);

            var log = BlueColor.TestLog.BcLog.GetLogger("HelloLogFile");
            log.Info(result);
        }
    }
}

Console

你好,世界!

HelloLogFile.Info.log

2019-01-11 21:05:34.0027|INFO|HelloLogFile|你好,世界!

eg:

using System;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            var result = BlueColor.TestLog.HelloWorld.SayHello("世界");
            Console.WriteLine(result);

            var log = BlueColor.TestLog.BcLog.GetLogger("HelloLogFile");
            log.Info(result);
        }
    }
}

Console

你好,世界!

HelloLogFile.Info.log

2019-01-11 21:05:34.0027|INFO|HelloLogFile|你好,世界!

Release Notes

BlueColor.TestLog 发行说明

  • .NETStandard 2.0

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
0.0.3 308 1/11/2019
0.0.2 299 1/2/2019
0.0.1 358 1/2/2019