Method: Libis::Workflow::Base::Logging#add_log
- Defined in:
- lib/libis/workflow/base/logging.rb
#add_log(message = {}) ⇒ Object
Helper function for the WorkItems to add a log entry to the log_history.
The supplied message structure is expected to contain the following fields:
-
:severity : ::Logger::Severity value
-
:id : optional message id
-
:text : message text
-
:task : list of tasks names (task hierarchy) that submits the message
40 41 42 43 44 |
# File 'lib/libis/workflow/base/logging.rb', line 40 def add_log( = {}) msg = () add_log_entry(msg) self.save! end |