How rails_semantic_logger works out of the box
mainOnce installed, rails_semantic_logger automatically replaces the standard Rails logger.
Default Behavior:
- Writes to
log/<environment>.log(e.g.,log/development.log). - Colorizes output in development.
- Logs to standard out (
$stdout) when runningrails server. - Logs to standard error (
$stderr) when runningrails console(to prevent logs from mixing with command return values). - Collapses multi-line Rails request logs into a single, structured "Completed" line containing searchable fields like
controller,action,status, andduration.