Module: Chatterbot::Logging
- Included in:
- Bot
- Defined in:
- lib/chatterbot/logging.rb
Overview
routines for outputting log messages, as well as logging tweets to the database if desired.
Instance Method Summary collapse
-
#critical(s) ⇒ Object
something really bad happened, print it out and log it.
-
#debug(s) ⇒ Object
log a message.
Instance Method Details
#critical(s) ⇒ Object
something really bad happened, print it out and log it
19 20 21 22 |
# File 'lib/chatterbot/logging.rb', line 19 def critical(s) puts s debug s end |
#debug(s) ⇒ Object
log a message
12 13 14 15 |
# File 'lib/chatterbot/logging.rb', line 12 def debug(s) puts s if verbose? logger.debug "#{botname} #{s}" unless ! logging? end |