Examples of using mag logger