Class: Msf::Exploit::Remote::SMB::LogAdapter::Logger
- Inherits:
-
Logger
- Object
- Logger
- Msf::Exploit::Remote::SMB::LogAdapter::Logger
- Defined in:
- lib/msf/core/exploit/remote/smb/log_adapter.rb
Overview
API inherited from ::Rex::Ui::Output, but as it is a class - it can not be included as a mixin
Instance Method Summary collapse
-
#initialize(mod, log_device) ⇒ Logger
constructor
A new instance of Logger.
-
#print(msg = '') ⇒ Object
Prints a message with no decoration.
-
#print_error(msg = '') ⇒ Object
(also: #print_bad)
Prints an error message.
-
#print_good(msg = '') ⇒ Object
Prints a ‘good’ message.
-
#print_line(msg = '') ⇒ Object
Prints an undecorated line of information.
-
#print_status(msg = '') ⇒ Object
Prints a status line.
-
#print_warning(msg = '') ⇒ Object
Prints a warning.
Constructor Details
#initialize(mod, log_device) ⇒ Logger
Returns a new instance of Logger.
6 7 8 9 |
# File 'lib/msf/core/exploit/remote/smb/log_adapter.rb', line 6 def initialize(mod, log_device) super(log_device) @mod = mod end |
Instance Method Details
#print(msg = '') ⇒ Object
Prints a message with no decoration.
51 52 53 |
# File 'lib/msf/core/exploit/remote/smb/log_adapter.rb', line 51 def print(msg = '') @mod.print(msg) end |
#print_error(msg = '') ⇒ Object Also known as: print_bad
Prints an error message.
14 15 16 |
# File 'lib/msf/core/exploit/remote/smb/log_adapter.rb', line 14 def print_error(msg = '') @mod.print_error(msg) end |
#print_good(msg = '') ⇒ Object
Prints a ‘good’ message.
23 24 25 |
# File 'lib/msf/core/exploit/remote/smb/log_adapter.rb', line 23 def print_good(msg = '') @mod.print_good(msg) end |
#print_line(msg = '') ⇒ Object
Prints an undecorated line of information.
37 38 39 |
# File 'lib/msf/core/exploit/remote/smb/log_adapter.rb', line 37 def print_line(msg = '') @mod.print_line(msg) end |
#print_status(msg = '') ⇒ Object
Prints a status line.
30 31 32 |
# File 'lib/msf/core/exploit/remote/smb/log_adapter.rb', line 30 def print_status(msg = '') @mod.print_status(msg) end |
#print_warning(msg = '') ⇒ Object
Prints a warning
44 45 46 |
# File 'lib/msf/core/exploit/remote/smb/log_adapter.rb', line 44 def print_warning(msg = '') @mod.print_warning(msg) end |