slogging
slogging copied to clipboard
A Typesafe-logging (and slf4j) compatible logging library based on macros for Scala/JVM, Scala.js, and Scala Native
The release notes say: > Version 0.6.2 (17.09.20) > Published for Scala 2.12.x/2.13.x, Scala.js 1.0, and Scala Native 0.3.9/0.4.0-M2. but I can't find the 2.12 version: https://mvnrepository.com/artifact/biz.enef/slogging-slf4j
Please publish artifacts for the latest Scala 2.13.0, it should be rather straightforward to update.
Support logging configuration using HOCON ([Typesafe config](https://github.com/typesafehub/config) of [shocon](https://github.com/unicredit/shocon))
I don't see a mention of this in the documentation. [The `logger` methods don't take their `msg` param by-name](https://github.com/jokade/slogging/blob/v0.6.1/shared/src/main/scala/slogging/logger.scala#L48-L54), but I guess the macro implementations may be providing that "laziness"...
I've fixed SLF4J Factory class name in README file.
https://github.com/jokade/slogging/blob/master/shared/src/main/scala/slogging/loggerFactory.scala#L169 the following ``` private def getTimestamp = new Date().toString ``` produces output ``` Date(1521735026318) ``` was this the intent?
The default logger defaults to NullLogger right now. We have backend code that uses slf4j and need a simple way to configure the SLF4JLoggerFactory backend when running in the JVM....
``` scala val obj = json(x = 5) logger.info(s"obj 1",obj) // not printing obj in console dom.window.console.log(s"obj 2 ",obj) // working fine ```
The issue appears to be in the slogging-winston: ```scala val winston = Dynamic.global.require("winston") ``` Under webpack, winston will not load under the global variable.