package bap-std

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Default Logger.

The logger will capture Event.Log events and print them into the log file, that is located at $BAP_LOG_DIR/log or, if $BAP_LOG_DIR is undefined, then it is in the $XDG_STATE_HOME/bap/log folder, and if this variable is also undefined, then the log will be at $HOME/.local/stat/bap or if even $HOME is undefined, then it will be in the system temporary folder under name bap.log.

Every time a logger is started the logs in the folder will be rotated. Previous logs will be accessed as NAME~AGE, where NAME is the name of the log file, and AGE is the age of the log (in calls to start function). For example, if the name is log, then the previous log will be in the file log~1.

The maximum age of the log can be set via environment variable BAP_BACKLOG and it defaults to 99, i.e., the oldest log file will have name log~99.

val start : unit -> unit

Start logging events. Only events of type Event.Log are logged.