Library for system monitoring and logging