Sets up a file with the given path, or if split_files_after
is given, creates a directory to store the files. By default the logging will not be time tagged and will be appending to the file / creating more files. If split_files_after
is given and for_append
is false, clears the directory. If the opened file exceeds split_files_after
characters, Debug_ch.refresh_ch ()
returns true; if in that case Debug_ch.debug_ch ()
is called, it will create and return a new file.
If elapsed_times
is different from Not_reported
, the elapsed time spans are printed for log subtrees, in the corresponding units with precision up to 1%. The times include printing out logs, therefore might not be reliable for profiling. In the runtime creation functions, elapsed_times
defaults to Not_reported
.
If print_entry_ids
is true, the entry_id
identifiers are printed on log headers with the syntax {#ID}
; by default they are omitted.
If global_prefix
is given, the log header messages (and the log closing messages for the flushing backend) are prefixed with it.