A simple logging framework in TypeScript