Module: Muby::Logger
- Includes:
- Configurable
- Included in:
- Connection, InputWindow, OutputWindow, Style
- Defined in:
- lib/muby/logger.rb
Overview
A simple logger that logs to whatever logfiles you have defined in your preferences.
Instance Method Summary collapse
-
#log_input(c) ⇒ Object
Logs everything that gets read from the remote connection.
-
#log_output(c) ⇒ Object
Logs everything that gets sent to the remote connection.
Methods included from Configurable
Instance Method Details
#log_input(c) ⇒ Object
Logs everything that gets read from the remote connection.
12 13 14 15 16 17 |
# File 'lib/muby/logger.rb', line 12 def log_input(c) if conf.input_logfile conf.input_logfile.write(c) conf.input_logfile.flush end end |
#log_output(c) ⇒ Object
Logs everything that gets sent to the remote connection.
22 23 24 25 26 27 |
# File 'lib/muby/logger.rb', line 22 def log_output(c) if conf.output_logfile conf.output_logfile.write(c) conf.output_logfile.flush end end |