Skip to content

Is it possible to disable line wrapping? #533

Answered by darkfrog26
jackkoenig asked this question in Q&A
Discussion options

You must be logged in to vote

@jackkoenig absolutely. That's just the default formatter. When you configure your logging you can either create your own formatter or use one of the existing options. The default is 'advanced': https://github.com/outr/scribe/blob/master/core/shared/src/main/scala/scribe/format/Formatter.scala#L51, but if you don't want multi-line I'd recommend using enhanced:

Logger
  .root
  .clearHandlers()
  .withHandler(minimumLevel = Some(Level.Info), formatter = Formatter.enhanced)
  .replace()

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jackkoenig
Comment options

Answer selected by jackkoenig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants