Split up Salamander loggging code to separate header file