Skip to content

hosomi/AzureStorageTableCoreLogger

Repository files navigation

📄 AzureStorageTableCoreLogger

Build Status
 
Implement the interface of Microsoft.Extensions.Logging to output logs to AzureStorageTable.
(Microsoft.Extensions.Logging のインターフェイスを実装して AzureStorageTable へログを出力します。)

Usage:

using AzureStorageTableCoreLogger;:

using AzureStorageTableCoreLogger;
using System;

class Program
{
    static void Main(string[] args)
    {
        Logger log = new Logger("UseDevelopmentStorage=true", "TestTable", "TestKey");

        log.Debug("DEBUG");
        log.Info("INFO");
        try
        {
            int a = 0;
            int b = 0;
            int c = a / b;
        }
        catch (Exception e)
        {
            log.Error(e, "ERROR");
            log.Error(e);
        }
    }
}

Usage results:

Usage results

Install

🔗 NuGet Gallery | AzureStorageTableCoreLogger

 

or

 
dotnet add PROJECT package AzureStorageTableCoreLogger --version [version]:

example:

dotnet add PROJECT package AzureStorageTableCoreLogger --version 0.0.1.1

📚 リファレンス

🔗 Logger クラス (Microsoft.Extensions.Logging) | Microsoft Docs
🔗 Azure Storage Explorer – クラウド ストレージ管理 | Microsoft Azure
🔗 Table Storage | Microsoft Azure
🔗 Azure ストレージ エミュレーターを使用した開発とテスト | Microsoft Docs

About

Microsoft.Extensions.Logging -> AzureStorageTable

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages