It seems that the function itself is not executed because if I now run
log_threshold(INFO) #define the level of output log information (DEBUG, INFO, WARN, ERROR)
log_formatter(formatter_glue)
log_layout(layout_glue_colors) #colorful log messages
appender_tee(file.path(getwd(),'log.txt')) #log both to console and to file
log_warn('I am a higher level log message that is very likely to be printed')
the WARN message is printed to the console but not to file (file was not created)
If I run
appender_tee(file.path(getwd(),'log.txt'))
R studio just prints out the structure:
It seems that the function itself is not executed because if I now run
the WARN message is printed to the console but not to file (file was not created)