What is a good way to do logging in a Scala application? Something that is consistent with the language philosophy, does not clutter the code, and is low-maintenance and unobtrusive. Here's a basic requirement list:
- simple
- does not clutter the code. Scala is great for its brevity. I don't want half of my code to be logging statements
- log format can be changed to fit the rest of my enterprise logs and monitoring software
- supports levels of logging (ie debug, trace, error)
- can log to disk as well as other destinations (i.e. socket, console, etc.)
- minimum configuration, if any
- works in containers (ie, web server)
- (optional, but nice to have) comes either as part of the language or as a maven artifact, so I don't have to hack my builds to use it
I know I can use the existing Java logging solutions, but they fail on at least two of the above, namely clutter and configuration.
Thanks for your replies.