We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
I'm using IJulia v1.23.2 on julia 1.5.3
IJulia v1.23.2
julia 1.5.3
When we start IJulia kernels, we want logs sent to a log file. To do this, we add the following to our kernel.json:
kernel.json
-L /path/to/our/init.jl
And this init.jl file pulls in LoggingExtras, and sends logs to a file.
init.jl
LoggingExtras
Unfortunately, it seems that after this has happened, kernel.jl's init() function runs, and changes the global_logger with these lines:
init()
global_logger
logger = Base.CoreLogging.SimpleLogger(Base.stderr) Base.CoreLogging.global_logger(logger)
This causes logs to go to the notebook instead.
Would it be possible to make this a configurable option so that the global logger is changed only if that's what we want?
Thanks.
The text was updated successfully, but these errors were encountered:
One option would be to use an ijulia startup file instead which is included after IJulia.init:
IJulia.init
IJulia.jl/src/kernel.jl
Line 26 in 6f92c42
Sorry, something went wrong.
Using startup_ijulia.jl worked well for us.
startup_ijulia.jl
No branches or pull requests
Hi,
I'm using
IJulia v1.23.2
onjulia 1.5.3
When we start IJulia kernels, we want logs sent to a log file. To do this, we add the following to our
kernel.json
:-L /path/to/our/init.jl
And this
init.jl
file pulls inLoggingExtras
, and sends logs to a file.Unfortunately, it seems that after this has happened, kernel.jl's
init()
function runs, and changes theglobal_logger
with these lines:This causes logs to go to the notebook instead.
Would it be possible to make this a configurable option so that the global logger is changed only if that's what we want?
Thanks.
The text was updated successfully, but these errors were encountered: