-
Notifications
You must be signed in to change notification settings - Fork 315
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
[FEATURE REQUEST]: Allow injection of custom LoggerService #473
Comments
We could expose |
@imback82 |
Do you set it before executing any Spark related code? The following works for me. public void Run(string[] args)
{
LoggerServiceFactory.SetLoggerService(MyLogger.s_instance);
SparkSession spark = SparkSession
.Builder()
.AppName(".NET Spark SQL basic example")
.Config("spark.some.config.option", "some-value")
.GetOrCreate();
spark.Stop();
} |
By the way, this applies only to the driver side log, not the worker. So, #542 may not be a good long term solution. Integrating with |
@imback82 , yes, this was a user error sorry. Re #542, you're right, so i'll have a look at that option. |
|
Happy to implement this. |
Cool. Here is what I am thinking:
You can think of each bullet as a separate PR. Thanks in advance! |
No progress as yet sorry, I've had to redirect my efforts in the (not so) short term. |
It's not possible to redirect all logging to the applications own logging pipeline currently as both
LoggerServiceFactory
andILoggerService
are internal.I would like to inject my own logging service (either seq or Application Insights depending on environment) and have all logs consolidated.
It seems log4net is suppoerted via config file however I have other correlation information that I need to add which I cannot see how to accomplish.
Is this possible or is there another way to achieve this?
The text was updated successfully, but these errors were encountered: