Skip to content

TRA-Tech/slack-logger

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SlackLog

I developed a logger package for Nuget. SlackLog is using Slack for logging. This has simple usage. You can look at SlackLog

Feature

  • When you want to send message to channel on Slack, SlackLog will open channel automatically.
  • SlackLog has 6 channel as default. They are info,fatal,warning,error,logsdelete and logsedit. Then, you can use any specific channel for your project.

How to use?

First of all, you need to register to Slack and you should create Application and Bot Token on Slack. If you do not know how to use create tokens you should look Create and regenerate API tokens

And you should send setting to SLogger class and you can start use SlackLog. Otherway you can implent as middleware.

 SLogger logger = new SLogger(new SlackDto.Setting()
            {
                BotToken = "yourbottoken",
                BotName = "LoggerApp",
                AppToken = "yourapplicationtoken",
                Prefix = "helper-test",
                Title = "helper-test",
                TitleUrl = "yourinformationsite.com"
            });

            logger.Slack("test", SlackDto.SlackType.Info);

If you give me your feedback I will be happy.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%