Module cognitive_qualia::log [] [src]

This module is wrapper for timber crate. It defines application specific log levels and macros.

Log levels

Log levels:

  • ERROR - indicates heavy but recoverable error. Application may be not fully usable after such kind of error.
  • DEBUG - temporary logs for debugging current problem. Logs on this level should not be committed.
  • NYIMP - not yet implemented. This log indicates some functionality is planned but not implemented. It is another way of saying unimplemented!() but without panicking.
  • WARN* - something went wrong, but application can handle this. User may want to fix the problem.
  • INFO* - general info that something happened.

In surface compositors or window managers some logs may be printed 60 times per second. It is not always desirable to have them all always switched on. Numbers along level names mean:

  • *1 - very important, very rare log
  • *2 - mildly important, rare log
  • *3 - mildly important, frequent log
  • *4 - not important, very frequent log

Modules

level

Functions

backtrace