module Netplex_log:Loggerssig
..end
val level_weight : Netplex_types.level -> int
val level_of_string : string -> Netplex_types.level
val channel_logger : Pervasives.out_channel -> Netplex_types.logger
val stderr_logger_factory : Netplex_types.logger_factory
logging {
type = "stderr";
}
val file_logger : string -> Netplex_types.logger
val file_logger_factory : Netplex_types.logger_factory
logging {
type = "file";
file = "/path/to/logfile";
}
class type multi_file_config =object
..end
val multi_file_logger : multi_file_config -> Netplex_types.logger
val multi_file_logger_factory : Netplex_types.logger_factory
logging {
type = "multi_file";
directory = "/path/to/logdir";
file {
component = "name_of_component";
max_level = "max_level";
file = "logfile";
};
file { ... }; ...
}
If component
is missing it will default to "*". If max_level
is omitted it is assumed to be "all".
val logger_factories : Netplex_types.logger_factory list
val debug_scheduling : bool Pervasives.ref
val debug_containers : bool Pervasives.ref