preparing logging system