Sha256: 5f017104fa27ace0d69ac4fe4565a3baedf2d9de80a56d076391a0a290f90d61
Contents?: true
Size: 927 Bytes
Versions: 12
Compression:
Stored size: 927 Bytes
Contents
# encoding: ascii-8bit # Copyright 2014 Ball Aerospace & Technologies Corp. # All Rights Reserved. # # This program is free software; you can modify and/or redistribute it # under the terms of the GNU General Public License # as published by the Free Software Foundation; version 3 with # attribution addendums as found in the LICENSE.txt require 'cosmos/processors/processor' module Cosmos class NewPacketLogProcessor < Processor # @param packet_log_writer_name [String] Name of the packet log writer to start new logs on def initialize(packet_log_writer_name = 'ALL') super() @packet_log_writer_name = packet_log_writer_name end # Create a new log file # # See Processor#call def call(packet, buffer) if CmdTlmServer.instance CmdTlmServer.instance.start_logging(@packet_log_writer_name) end end end # class NewPacketLogProcessor end # module Cosmos
Version data entries
12 entries across 12 versions & 1 rubygems