class
Cryload::Logger
- Cryload::Logger
- Reference
- Object
Overview
Singleton class which handles all the logging
Defined in:
cryload/logger.crConstant 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
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.