class Cryload::Logger

Overview

Singleton class which handles all the logging

Defined in:

cryload/logger.cr

Constant Summary

SCHEMA_VERSION = 1

Class Method Summary

Class Method Detail

def self.abort_with_config_error(message : String) : NoReturn #

def self.format_bytes(bytes : Int | Int64 | Float64) : String #

def self.format_latency(value : Float64) : String #

def self.format_rate(rate : Float64) : String #

def self.format_span(span : Time::Span | Nil) : String #

def self.format_success_statuses(status_ranges : Array(Range(Int32, Int32))) : String #

def self.log_connection_error(uri : URI, ex : Exception) #

def self.log_final(signal_code : ExitCode | Nil = nil) #

Logs the final stats. signal_code is set when the run was cut short by a signal, so the verdict says why instead of claiming a clean finish.


def self.log_header(url : String, fiber_count : Int32) #

Logs the test header


def self.log_progress #

def self.log_warmup(warmup : Time::Span) #

def self.percentage(count : Int64, total : Int64) : Float64 #

def self.print_histogram(histogram_bins) #

def self.trim_number(value : Float64) : String #