CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

CoCalc provides the best real-time collaborative environment for Jupyter Notebooks, LaTeX documents, and SageMath, scalable from individual users to large groups and classes!

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/lib/rex/logging/sinks/stdout.rb
Views: 1904
1
# -*- coding: binary -*-
2
module Rex
3
module Logging
4
module Sinks
5
6
###
7
#
8
# This class implements the LogSink interface and backs it against stdout
9
###
10
class Stdout < Rex::Logging::Sinks::Stream
11
12
#
13
# Creates a log sink instance that will be configured to log to stdout
14
#
15
def initialize(*_attrs)
16
super($stdout)
17
end
18
19
end
20
21
end end end
22
23