FM_le {formods} | R Documentation |
Add the supplied txt and the module type to the log file and display it to the console.
FM_le(state, entry, escape_braces = TRUE, entry_type = "alert")
state |
Module state after yaml read |
entry |
Text to add |
escape_braces |
Set to |
entry_type |
Set to either "alert"(default), "danger", "info", "success", or "warning" |
Boolean value indicating success (TRUE
) or failure (FALSE
).
# We need a module state to use this function:
id="UD"
sess_res = UD_test_mksession(session=list(), id=id)
state = sess_res$state
FM_le(state, "This is a normal message")
FM_le(state, "This is a danger message", entry_type="danger")
FM_le(state, "This is a info message", entry_type="info")
FM_le(state, "This is a success message", entry_type="success")
FM_le(state, "This is a warning message", entry_type="warning")