Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Event for logging#20

Merged
GlaireDaggers merged 1 commit intomasterGlaireDaggers/Netcode.IO.NET:masterfrom
unknown repositoryCopy head branch name to clipboard
Feb 9, 2023
Merged

Event for logging#20
GlaireDaggers merged 1 commit intomasterGlaireDaggers/Netcode.IO.NET:masterfrom
unknown repositoryCopy head branch name to clipboard

Conversation

@ghost
Copy link

@ghost ghost commented Jan 25, 2019

I was planning on using this library in a project that uses Serilog for its logging. To accomplish this, I added an event that fires when the log(...) method is called. The original behavior can easily be restored on the user's end by adding a handler to Server.OnLogMessage that Console.Write(...)s the event data.

This is to allow the use of external loggers such as log4net or serilog. Documentation has been updated accordingly.
@GlaireDaggers GlaireDaggers merged commit f7f9d0d into GlaireDaggers:master Feb 9, 2023
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.

3 participants

Comments

Close sidebar
Morty Proxy This is a proxified and sanitized view of the page, visit original site.