Example of a dtrace logging handler

Dump log messages into dtrace probes
Dynamically view verbose logging with dtrace!

$ sudo dtrace -Zs logging.d -c ./usdt_logger.py
python50018:dtrace-logger:logging:warning 30 warning message
python50018:dtrace-logger:logging:error 40 error message
python50018:dtrace-logger:logging:critical 50 critical message
python50018:dtrace-logger:logging:debug 10 debug message
python50018:dtrace-logger:logging:info 20 info message
python50018:dtrace-logger:logging:warning 30 warning message
python50018:dtrace-logger:logging:error 40 error message
python50018:dtrace-logger:logging:critical 50 critical message