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

Have the Ability for a User Provided Logger, Also Provide a Default #303

Open
davidvonthenen opened this issue Jun 12, 2024 · 2 comments
Open
Labels
help wanted Extra attention is needed low priority Do these last...

Comments

@davidvonthenen
Copy link
Contributor

Proposed changes

Context

Possible Implementation

Other information

@sgodin
Copy link

sgodin commented Sep 24, 2024

Hello, it's not documented. But I examined the code to figure out you can do the following:

Define a class like:
public class DeepgramLogger : Serilog.ILogger
{
public void Write(LogEvent logEvent)
{
.. Add your code here for custom logging
}
}

And pass this to the Library with the following:

Deepgram.Logger.Log.Initialize(new DeepgramLogger());

@davidvonthenen
Copy link
Contributor Author

Yea, the other objective to this issue is to define an interface for the logger within the SDK here. It isn't explicitly called out here, but that's one of the other intents

@jpvajda jpvajda added the help wanted Extra attention is needed label Nov 7, 2024
@davidvonthenen davidvonthenen added the low priority Do these last... label Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed low priority Do these last...
Projects
None yet
Development

No branches or pull requests

3 participants