diff options
author | vlad <vlad@drivergrp.com> | 2016-07-19 15:01:30 -0400 |
---|---|---|
committer | vlad <vlad@drivergrp.com> | 2016-07-19 15:01:30 -0400 |
commit | 979ff9e765e3c08501cbd00354a87013853fe796 (patch) | |
tree | c5d41ed99759c3bf97ba4ef9162aeb68ed4c29f8 /src/main/scala/com/drivergrp/core/logging.scala | |
parent | 8d45c2ec5e8abc63046c610109471cc3fa7bfaa2 (diff) | |
download | driver-core-979ff9e765e3c08501cbd00354a87013853fe796.tar.gz driver-core-979ff9e765e3c08501cbd00354a87013853fe796.tar.bz2 driver-core-979ff9e765e3c08501cbd00354a87013853fe796.zip |
Unit tests for core code and bug fixes
Diffstat (limited to 'src/main/scala/com/drivergrp/core/logging.scala')
-rw-r--r-- | src/main/scala/com/drivergrp/core/logging.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/scala/com/drivergrp/core/logging.scala b/src/main/scala/com/drivergrp/core/logging.scala index a4557e0..126c670 100644 --- a/src/main/scala/com/drivergrp/core/logging.scala +++ b/src/main/scala/com/drivergrp/core/logging.scala @@ -35,6 +35,13 @@ object logging { def debug(marker: Marker, message: String, args: AnyRef*): Unit } + /** + * Logger implementation which uses `com.typesafe.scalalogging.Logger` on the back. + * It redefines the meaning of logging levels to fit to the Driver infrastructure design, + * and as using error and warn, debug and trace was always confusing and mostly done wrong. + * + * @param scalaLogging com.typesafe.scalalogging.Logger which logging will be delegated to + */ class TypesafeScalaLogger(scalaLogging: com.typesafe.scalalogging.Logger) extends Logger { def fatal(message: String): Unit = scalaLogging.error(message) |