If you need something more powerful than the default logging options, you might want to look at a tool like Winston. Go to Atmosphere, and simply search for one of the many Winston packages available.
https://atmospherejs.com/?q=winston
Be warned, however - Winston is a sophisticated product, and ...