Add Logging facilitity to pure code.