Skip to content
This repository has been archived by the owner on Apr 8, 2021. It is now read-only.

Enables akka logs on startup and shutdown #54

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

tabdulradi
Copy link

@tabdulradi tabdulradi commented Dec 18, 2017

According to https://doc.akka.io/docs/akka/current/logging.html#turn-off-logging

The stdout-loglevel is only in effect during system startup and shutdown, and setting it to OFF as well, ensures that nothing gets logged during system startup or shutdown.

But this also means that we loose those valuable logs! Not sure if we really want them to be turned off by default.

stdout-loglevel = "OFF"
# Akka logs ONLY to stdout when the actor system is starting up and shutting down
# Setting this to OFF will silence those logs, but we will loose the visibility.
stdout-loglevel = "DEBUG"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just omit this entirely and leave it at the default (WARNING) - a happy medium somewhere between OFF and DEBUG?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We set loglevel = "DEBUG" (line 8), so to be consistent I chose the same level.

@@ -6,7 +6,9 @@ akka {
logging-filter = "akka.event.slf4j.Slf4jLoggingFilter"
# This is intentionally set to DEBUG - tune logging by adding filters to logback.xml file
loglevel = "DEBUG"
stdout-loglevel = "OFF"
# Akka logs ONLY to stdout when the actor system is starting up and shutting down
# Setting this to OFF will silence those logs, but we will loose the visibility.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/loose/lose/?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants