class SessionFileBackend

Defined in:

protohackers.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(session_id : String, file_name : String, mode : String = "a", *, formatter : Log::Formatter = Log::ShortFormat) #

[View source]
def self.new(session_id : String, file : File, *, formatter : Log::Formatter = Log::ShortFormat) #

[View source]

Instance Method Detail

def close #
Description copied from class Log::Backend

Closes underlying resources used by this backend.


[View source]
def session_id=(session_id : String) #

[View source]