Deborah.Sarah.JobLoggerTools
Deborah.Sarah.JobLoggerTools.assert_benji — Functionassert_benji(
cond::Bool,
msg::AbstractString,
jobid::Union{Nothing, String}=nothing
) -> NothingAssert that cond is true. If false, log an error with timestamp and job ID, then throw.
Arguments
cond: Boolean condition to assert.msg: Message to print if assertion fails.jobid: Optional job identifier.
Deborah.Sarah.JobLoggerTools.debug_benji — Functiondebug_benji(
msg::AbstractString,
jobid::Union{Nothing, String}=nothing
) -> NothingPrint a timestamped debug message with optional job ID.
The message is prefixed with [DEBUG], and flushed to stdout.
Arguments
msg: Debug message to print.jobid: Optional job identifier.
Deborah.Sarah.JobLoggerTools.error_benji — Functionerror_benji(
msg::AbstractString,
jobid::Union{Nothing, String}=nothing
) -> NothingPrint an error message with timestamp and job ID (if given), then throw an error with the same message.
Also flushes stdout and stderr after printing.
Deborah.Sarah.JobLoggerTools.info_benji — Functioninfo_benji(
msg::AbstractString,
jobid::Union{Nothing, String}=nothing
) -> NothingPrint a timestamped informational message with optional job ID.
The message is prefixed with [INFO], and flushed to stdout.
Arguments
msg: Informational message to print.jobid: Optional job identifier.
Deborah.Sarah.JobLoggerTools.log_stage_benji — Functionlog_stage_benji(
title::String,
jobid::Union{Nothing, String}=nothing
) -> NothingPrint a high-level stage delimiter with a title, surrounded by = lines.
Useful for separating major processing stages in logs.
Deborah.Sarah.JobLoggerTools.log_stage_sub1_benji — Functionlog_stage_sub1_benji(
title::String,
jobid::Union{Nothing, String}=nothing
) -> NothingPrint a substage delimiter with a title, surrounded by - lines.
Used for visually marking sub-sections in logs.
Deborah.Sarah.JobLoggerTools.println_benji — Functionprintln_benji(
msg::AbstractString,
jobid::Union{Nothing, String}=nothing
) -> NothingPrint a timestamped log message with optional job ID.
Arguments
msg: The message to print.jobid: Optional job identifier to prepend.
Output is printed to stdout, immediately flushed.
Deborah.Sarah.JobLoggerTools.warn_benji — Functionwarn_benji(
msg::AbstractString,
jobid::Union{Nothing, String}=nothing
) -> NothingPrint a timestamped warning message with optional job ID.
The message is prefixed with [WARNING], and flushed to stdout.
Arguments
msg: Warning message to print.jobid: Optional job identifier.
Deborah.Sarah.JobLoggerTools.@logtime_benji — Macro@logtime_benji(
jobid_expr,
expr
) -> AnyMacro that times and logs the execution of an expression, with optional GC allocation info.
Arguments
jobid_expr: Optional job ID (can benothing).expr: Any Julia expression to execute and time.
Logs elapsed time and memory usage with a timestamp. Returns the value of expr.