class FileManager

Defined in:

file_manager.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(root_url : String, size_limit : Int64) #

[View source]

Instance Method Detail

def build_file_path(tag : String, time : String) : String #

[View source]
def check_for_over_limit #

[View source]
def cleanup_files #

[View source]
def directory_size(path : String) : Int64 #

[View source]
def flush_as_necessary(open_file : OpenFile) #

[View source]
def get_open_file(data_hash : SyslogData, event_name : String | Nil) #

[View source]
def initialize_flusher #

[View source]
def mkdir_p(path : String) #

[View source]
def open_file(filepath : String) : OpenFile #

[View source]
def open_file_count #

[View source]
def paused : Bool #

[View source]
def process_run(cmd : String) #

[View source]
def verify_file_name(name : String) : String #

[View source]
def write_to_file(data_hash : SyslogData, event_name : String | Nil, &) #

[View source]