question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Provide a possibility to mute Javalin startup messages

See original GitHub issue

It’s nice to see startup messages provided by Javalin by default, but it’s kinda problematic for apps that somehow want to customize an output:

image

We can mute Jetty with JettyUtil:

JettyUtil.logDuringStartup = false

But for Javalin we can only disable whole logger:

JavalinLogger.enabled = false

Well, that’s not exactly what we want to do as we want log things like WARNs and ERRORs to know if something stopped working. I think that these startup messages should be configurable the same as we decide if we want to print Javalin banner or not at startup.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dzikoyskcommented, Sep 7, 2021

I’ll take a look at it a little bit later as I think it requires some extra research to see how it works under the hood, especially that Jetty also lately logs some stuff at startup.

0reactions
zugazagoitiacommented, Oct 26, 2021

I’ve created a pull request, is this what you were looking for?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Provide a possibility to mute Javalin startup messages #1376
It's nice to see startup messages provided by Javalin by default, but it's kinda problematic for apps that somehow want to customize an ......
Read more >
Documentation - A lightweight Java and Kotlin web framework
Javalin - A lightweight Java and Kotlin web framework. Create REST APIs in Java or Kotlin easily.
Read more >
How to disable Javalin logging - Stack Overflow
Javalin uses SLF4J for logging (you can even see the class name Slf4jLog in the first message). This is an abstracton which can...
Read more >
javalin-io/general - Gitter
I just tried this. The problem is that if you set ctx.status() in the exception handler, the error handler will be triggered after...
Read more >
Read Web Applications with Javalin | Leanpub
Why should I use Javelin over Spring Boot or Vert.x? Javalin is a microservice framework with a built in app server ( making...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found