jupyter-xeus / xeus-r

Jupyter kernel for the R programming language
Other
40 stars 5 forks source link

use console logger #61

Closed romainfrancois closed 7 months ago

romainfrancois commented 7 months ago

closes #48

This uses a xeus::make_console_logger(xeus::xlogger::full) for now, perhaps later we should use a xeus::make_file_logger as well, perhaps based on an R option, e.g. in IRkernel :

#' Kernel logging functions
#'
#' A set of exported logging utilities that have the capability to be used in upstream projects.
#' Log level and log file can be set via R package options e.g. \code{options(jupyter.log_level = 2L)}
#' or from the environment variables JUPYTER_LOG_LEVEL and JUPYTER_LOGFILE.
romainfrancois commented 7 months ago

I'm not sure how to send a log message to the kernel's p_logger directly, so that e.g. the R code might contribute to the logs.

romainfrancois commented 7 months ago

I'll follow up in a different issue/pr.