Cryload::Logger - cryload 6.0.0

# class Cryload::Logger

- Cryload::Logger
- Reference
- Object

##
Overview

Singleton class which handles all the logging

##
Defined in:

cryload/logger.cr

##
Constant Summary

SCHEMA_VERSION = `1`

##
Class Method Summary

- .abort_with_config_error(message : String) : NoReturn
- .format_bytes(bytes : Int | Int64 | Float64) : String
- .format_latency(value : Float64) : String
- .format_rate(rate : Float64) : String
- .format_span(span : Time::Span | Nil) : String
- .format_success_statuses(status_ranges : Array(Range(Int32, Int32))) : String
- .log_connection_error(uri : URI, ex : Exception)
- .log_final(signal_code : ExitCode | Nil = nil)

  Logs the final stats.

- .log_header(url : String, fiber_count : Int32)

  Logs the test header

- .log_progress
- .log_warmup(warmup : Time::Span)
- .percentage(count : Int64, total : Int64) : Float64
- .print_histogram(histogram_bins)
- .trim_number(value : Float64) : String

##
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 #