Commit graph

12 commits

Author SHA1 Message Date
Gaston M. Tonietti
9e9d5541b4 +act #3671 Implementing support for MDC values defined by the application. Fixes #3671.
* Added LogEvent subclasses with new field for transporting the MDC custom values.
* Slf4jLogger now takes MDC values from new LogEvent field, puts all in MDC before appending the log, and removes all after.
* New trait DiagnosticLoggingAdapter was introduced, which extends LoggingAdapter and adds MDC support with methods to get, set and clear MDC values.
* New factory method added to Logging for getting loggers with MDC support.
* BusLogging was changed to create new LogEvents including the MDC values.
* Actors can mixin with DiagnosticActorLogging which defines a diagnostic logger "log", has a hook to override for defining MDC values per message, and overrides aroundReceive for setting and clearing MDC around receive execution.
* Proper documentation was added for Scala and Java under the Logging/Slf4j section.
2013-11-15 11:09:22 -03:00
Patrik Nordwall
cd2b77157c Log dead letters, see #3453 2013-06-20 12:09:09 +02:00
Patrik Nordwall
a9cde60bee Logging of the size of different message types.
* Maximum detected size per message type is logged once
* Default configuration disables this feature
2013-05-03 15:49:42 +02:00
Viktor Klang
7f84dbf448 #3080 - Including a timestamp in LogEvent and in the MDC 2013-04-29 15:29:40 -07:00
Roland
63c6bc7d88 restructure ToC of reST docs
- completely decouple Java/Scala and remove heading suffixes
- move all images into images/
- move cluster docs into “official” place
2013-04-19 13:40:37 +02:00
Rich Dougherty
e40995a576 Make LoggingReceive docs more obvious. Fixes #3094 2013-02-25 11:39:08 +13:00
Patrik Nordwall
31177a68a4 Add logging intro, see #2737
(cherry picked from commit 5fcde199d818e22e6dad4aa70f351a52cefe446f)

Conflicts:

	akka-docs/rst/java/logging.rst
	akka-docs/rst/scala/logging.rst
2013-02-22 15:16:53 +01:00
Björn Antonsson
a94749d577 Add the LogLevel OFF that can be used to turn off logging. See #2965
Conflicts:
	akka-actor/src/main/scala/akka/actor/ActorRefProvider.scala
	akka-docs/rst/java/logging.rst
	akka-docs/rst/scala/logging.rst
2013-02-21 15:28:25 +01:00
Patrik Nordwall
2476831705 Rename event-handlers to loggers, see #2979
* Rename config akka.event-handlers to akka.loggers
* Rename config akka.event-handler-startup-timeout to
  akka.logger-startup-timeout
* Rename JulEventHandler to JavaLogger
* Rename Slf4jEventHandler to Slf4jLogger
* Change all places in tests and docs
* Deprecation, old still works, but with warnings
* Migration guide
* Test for the deprecated event-handler config
2013-02-05 11:19:02 +01:00
Patrik Nordwall
ec438ca2a6 Logback and slf4j dependencies, see #2615
* Latest slf4j 1.6.6
* Latest logback-classic 1.0.7
* Removed runtime scope for logback in docs
2012-10-12 14:15:00 +02:00
Björn Antonsson
08ef942242 Reformating configuration and examples for PDF (Scala, and leftovers). See #2413 2012-10-01 20:35:46 +02:00
Roland
9bc01ae265 add preprocessor for RST docs, see #2461 and #2431
The idea is to filter the sources, replacing @<var>@ occurrences with
the mapping for <var> (which is currently hard-coded). @@ -> @. In order
to make this work, I had to move the doc sources one directory down
(into akka-docs/rst) so that the filtered result could be in a sibling
directory so that relative links (to _sphinx plugins or real code) would
continue to work.

While I was at it I also changed it so that WARNINGs and ERRORs are not
swallowed into the debug dump anymore but printed at [warn] level
(minimum).

One piece of fallout is that the (online) html build is now run after
the normal one, not in parallel.
2012-09-21 13:58:47 +02:00
Renamed from akka-docs/scala/logging.rst (Browse further)