Calipseo is FAO web- based platform for national Fisheries Authorities to streamline management of fisheries data and the production, analysis and reporting of fishery statistics.
1
stars
0
forks
source link
[CALR-81] Vessel Details module - add explicit logs on main code runs #81
Issue migrated from JIRA: https://sdlc.review.fao.org/jira/browse/CALR-81
Creator/Reporter: Emmanuel Blondel @eblondel
Assignee: Brian Ojok @brianandy
Priority: Medium
Status: Done
Date of creation: 2022-04-11T11:36:18.000+0000
In master, some utils logging functions have been added. These functions, namely INFO, WARN and ERROR should be added to better track what's happening. The 3 functions inherit from a generic 'logger' function available for knowledge at 'assets/core/utils.R'
These functions inherit also from the 'sprintf' function, that can be used to simplify logs statements without having to call sprintf or paste functions..
{code:java}
INFO("This is some info about vessel '%s'", ""){code}
This results in the following cat print:
{noformat}
[shiny-calipseo][INFO] This is some info about vessel ''{noformat}
This task is to enrich the Vessel details (vessel_info_server.R) R code with some meaningful logs to track the R code running.
cc [~alexandre.bennici@fao.org] for information about loggers that will have to be applied in artfish and logbook modules as well.
In master, some utils logging functions have been added. These functions, namely INFO, WARN and ERROR should be added to better track what's happening. The 3 functions inherit from a generic 'logger' function available for knowledge at 'assets/core/utils.R'
These functions inherit also from the 'sprintf' function, that can be used to simplify logs statements without having to call sprintf or paste functions..
{code:java} INFO("This is some info about vessel '%s'", ""){code}
This results in the following cat print:
{noformat}
[shiny-calipseo][INFO] This is some info about vessel ''{noformat}
This task is to enrich the Vessel details (vessel_info_server.R) R code with some meaningful logs to track the R code running.
cc [~alexandre.bennici@fao.org] for information about loggers that will have to be applied in artfish and logbook modules as well.