| Class | OpenWFE::BaseHistory |
| In: |
lib/openwfe/expool/history.rb
|
| Parent: | Object |
A base implementation for InMemoryHistory and FileHistory.
| entries | [R] |
# File lib/openwfe/expool/history.rb, line 79
79: def initialize (service_name, application_context)
80:
81: super()
82:
83: service_init(service_name, application_context)
84: end
# File lib/openwfe/expool/history.rb, line 86
86: def log (event, *args)
87:
88: return if event == :update
89: return if event == :reschedule
90: return if event == :stop
91:
92: msg = "#{Time.now.to_s} -- "
93:
94: msg << event.to_s
95:
96: if args.length > 0
97: fei = extract_fei args[0]
98: msg << " #{fei.to_s}"
99: end
100:
101: #msg << " #{args[1].to_s}" # if args.length > 1
102:
103: @output << msg + "\n"
104: end