Skip to content

feat: added logging#94

Merged
SlavaVedernikov merged 8 commits intoSlavaVedernikov:masterfrom
AlexLegi0n:feat/logging
Aug 14, 2024
Merged

feat: added logging#94
SlavaVedernikov merged 8 commits intoSlavaVedernikov:masterfrom
AlexLegi0n:feat/logging

Conversation

@AlexLegi0n
Copy link
Copy Markdown

Added serilog
Added logging output option
Added logging level option
Added logging option binder
Replaced console write line to logger
Added logger configuration to cli commands

#21

a.butolin added 5 commits August 12, 2024 16:48
Added serilog
Added logging output option
Added logging level option
Added logging option binder
Replaced console write line to logger
Added logger configuration to cli commands

SlavaVedernikov#21
Added command line builder
Added logging middleware
Added validation error
Updated strategies to use validation error
Log validation errors
var siteContentSubDirectoriesOption = SiteContentSubDirectoriesOption.Get();
var siteNoSitemapSubDirectoriesOption = SiteNoSitemapSubDirectoriesOption.Get();

var loggingLevelOption = LoggingLevelOptions.Get();
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can be removed now.

Progress = new Progress<int>(i =>
{
Console.WriteLine($"Processed {i} out of {ItemsCount} items");
Log.Debug("Processed {ItemNumber} of {ItemsCount} items", i, ItemsCount);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change this to Information

else
{
Console.WriteLine($"Resolving wildcard Structures for '{item}'.");
Log.Debug("Resolving wildcard Structures for {Structure}", item);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change to
Log.Information("Resolving wildcard Structures for {Path}", item);

@SlavaVedernikov SlavaVedernikov merged commit e547d6d into SlavaVedernikov:master Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants