Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Serilog sample to ref servers #1263

Merged
merged 2 commits into from
Feb 2, 2021
Merged

Add Serilog sample to ref servers #1263

merged 2 commits into from
Feb 2, 2021

Conversation

mregen
Copy link
Contributor

@mregen mregen commented Jan 28, 2021

  • the Serilog trace event logger replaces the default log output file
  • optional logging to console / debug

@codecov
Copy link

codecov bot commented Jan 28, 2021

Codecov Report

❗ No coverage uploaded for pull request base (master@4a14df9). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #1263   +/-   ##
=========================================
  Coverage          ?   41.80%           
=========================================
  Files             ?      289           
  Lines             ?   104934           
  Branches          ?        0           
=========================================
  Hits              ?    43868           
  Misses            ?    61066           
  Partials          ?        0           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4a14df9...68ea2af. Read the comment docs.

Applications/ReferenceServer/SerilogTraceLogger.cs Outdated Show resolved Hide resolved
if (lastContact)
{
item += String.Format("Last Event:{0:HH:mm:ss}", session.SessionDiagnostics.ClientLastContactTime.ToLocalTime());
item += string.Format("Last Event:{0:HH:mm:ss}", session.SessionDiagnostics.ClientLastContactTime.ToLocalTime());
Copy link
Contributor

Choose a reason for hiding this comment

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

it is better to use StringBuilder instead of string concatenation by +=

Applications/ReferenceServer/SerilogTraceLogger.cs Outdated Show resolved Hide resolved
@mregen mregen merged commit 19a9aa4 into master Feb 2, 2021
@mregen mregen deleted the serilog branch February 2, 2021 06:19
fremat pushed a commit to fremat/UA-.NETStandard that referenced this pull request Feb 10, 2021
- the Serilog trace event logger replaces the default log output file 
- optional logging to console / debug
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.

None yet

3 participants