react command added
This commit is contained in:
parent
29de185cba
commit
8274a22f1b
8 changed files with 180 additions and 76 deletions
22
helpers/logger.cs
Normal file
22
helpers/logger.cs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace T3k3rg0
|
||||
{
|
||||
public static class Logger
|
||||
{
|
||||
public static ILoggerFactory CreateLoggerFactory()
|
||||
{
|
||||
return LoggerFactory.Create(builder =>
|
||||
{
|
||||
builder
|
||||
.AddSimpleConsole(options =>
|
||||
{
|
||||
options.TimestampFormat = "[yyyy-MM-dd HH:mm:ss] ";
|
||||
options.SingleLine = true;
|
||||
options.ColorBehavior = Microsoft.Extensions.Logging.Console.LoggerColorBehavior.Enabled;
|
||||
})
|
||||
.SetMinimumLevel(LogLevel.Debug);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue