Giter Site home page Giter Site logo

slf4s's People

Contributors

mattroberts297 avatar zaneli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

slf4s's Issues

Make Logger Serializable

As of SLF4J version 1.5.3, SLF4J Logger instances survive serialization - which is especially useful when using tools like Apache Spark.

Please can Logger in slf4s also be made serializable in the next release?

Publish for scala 2.9.x

Can you possibly also publish the 2.9.x version? Currently only the 2.10.x and 2.11.x versions are available on Sonatype.

By name evaluation of passed parameters

Hello team!
I noticed that your Logging trait takes parameters by value, so they're evaluated before if (loggingLevelEnabled) statement.
It would be nice to change signature of logging methods to something like info(msg: => String): Unit
This would be really useful because even string interpolation would be evaluated only when if statement passed

Display build status for branches

For example:
https://travis-ci.org/mattroberts297/slf4s.svg?branch=2.11

Instead of:
https://travis-ci.org/mattroberts297/slf4s.png?branch=master

Expose isTraceEnabled etc.

I'm using slf4s 1.1.7.

I want to do like this:

  • If trace is enabled, log: s"Pushing data to $url: $json"
  • Otherwise log less info: s"Pushing data to $url"

Because isTraceEnabled is not exposed, currently I can't do the above.

Please expose isTraceEnabled etc.

Scala 2.12 support

I'm getting this on Scala 2.12.0 and sbt 0.13.13:

error] Exception in thread "main" java.lang.NoSuchMethodError: org.slf4s.Logging.$init$(Lorg/slf4s/Logging;)V
[error] 	at syncgtd.Main$.<init>(Main.scala:5)
[error] 	at syncgtd.Main$.<clinit>(Main.scala)
[error] 	at syncgtd.Main.main(Main.scala)
java.lang.RuntimeException: Nonzero exit code returned from runner: 1
	at scala.sys.package$.error(package.scala:27)
[trace] Stack trace suppressed: run last compile:run for the full output.
[error] (compile:run) Nonzero exit code returned from runner: 1

Same code works perfectly on 2.11.8

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.