# Set the layout for 'my.package'
flog.layout(layout.simple, name='my.package')
# Update the ROOT logger to use a custom layout
layout <- layout.format('[~l] [~t] [~n.~f] ~m')
flog.layout(layout)
# Create a custom logger to trace variables
flog.layout(layout.tracearg, name='tracer')
x <- 5
flog.info(x, name='tracer')Run the code above in your browser using DataLab