Giter Club home page Giter Club logo

avsl's Introduction

AVSL - A Very Simple Logger

Build Status Maven Central

Overview

AVSL is a very simple logger, written in Scala. AVSL implements the Simple Logging Facade for Java (SLF4J) API, allowing applications to be written to the SLF4J API. (This, of course, includes Java applications.) Because it implements SLF4J, AVSL can easily be swapped for another SLF4J-compatible logging framework (or the other way around), without any changes to the calling application. Also, because it supports SLF4J, AVSL can be used in conjunction with Scala SLF4J wrappers, such as Grizzled-SLF4J.

"AVSL" stands for "A Very Simple Logger", and AVSL strives for simplicity in several ways.

  • AVSL is simple to configure, using a non-XML, INI-style configuration file that's reminiscent of the Python logging module's configuration. This simpler configuration file is easier to read and edit than the XML configuration files used by logging frameworks such as Logback. (Since I dislike XML configuration files, this is big win for me.)
  • AVSL is a lightweight logging framework. It is intended to be used primarily in standalone programs, not enterprise applications. It may work fine for your enterprise application, of course; but, if it doesn't, you can easily switch to something else.
  • The default message formatter uses a simpler, more compact syntax than Java's SimpleDateFormat, relying on strftime-like escapes.
  • You can specify the configuration file via an environment variable (AVSL_CONFIG) or a Java system property. If neither is present, AVSL looks for resource avsl.conf somewhere in the classpath.
  • AVSL does not monitor and reload its configuration file.
  • AVSL does not implement the SLF4J marker or MDC capabilities.
  • AVSL does not wrap other logging frameworks.
  • AVSL does not let programmers define their own log levels.

In short, AVSL is a perfectly serviceable, simple logging framework that can easily be swapped out for something with more features.

For more information, please see the AVSL web page.

NOTE: Starting with version 1.1.0, AVSL no longer supports Scala 2.10. For information on which AVSL versions support which Scala versions, see the AVSL web page.

Copyright and License

AVSL is copyright © 2010-2019 Brian M. Clapper.

avsl's People

Contributors

bmc avatar erikrozendaal avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

avsl's Issues

Multiple SLF4J Bindings

I am using aslf in a scala project and wanted to use logback since it allows for rolling log files. I am having the following issue and am not sure how to fix it:

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/cchiappone/.ivy2/cache/org.clapper/avsl_2.10/jars/avsl_2.10-1.0.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/cchiappone/.ivy2/cache/ch.qos.logback/logback-classic/jars/logback-classic-1.0.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.clapper.avsl.slf4j.AVSL_SLF4J_LoggerFactory]

I would like to the binding to be logback-classic. The only included dependency I have in the sbt file is "org.clapper" % "avsl_2.10" % "1.0.1"

thanks

Typo in javax.mail dependency

There is an extra dot in the dependency:
I guess it should read com.sun.mail

avsl/build.sbt

Line 30 in 58ac96c

"com.sun..mail" % "javax.mail" % "1.6.0",

Using version 1.0.16 I get the following error in sbt.

[warn] 	::::::::::::::::::::::::::::::::::::::::::::::
[warn] 	::          UNRESOLVED DEPENDENCIES         ::
[warn] 	::::::::::::::::::::::::::::::::::::::::::::::
[warn] 	:: com.sun..mail#javax.mail;1.6.0: java.text.ParseException: inconsistent module descriptor file found in 'https://repo1.maven.org/maven2/com/sun//mail/javax.mail/1.6.0/javax.mail-1.6.0.pom': bad organisation: expected='com.sun..mail' found='com.sun.mail';
[warn] 	::::::::::::::::::::::::::::::::::::::::::::::
[warn]
[warn] 	Note: Unresolved dependencies path:
[warn] 		com.sun..mail:javax.mail:1.6.0
[warn] 		  +- org.clapper:avsl_2.12:1.0.16 (/Users/alex/git/glass/rules/build.sbt#L28-65)
[warn] 		  +- com.cognotekt:glass-rules_2.12:0.0.3
[error] sbt.librarymanagement.ResolveException: unresolved dependency: com.sun..mail#javax.mail;1.6.0: java.text.ParseException: inconsistent module descriptor file found in 'https://repo1.maven.org/maven2/com/sun//mail/javax.mail/1.6.0/javax.mail-1.6.0.pom': bad organisation: expected='com.sun..mail' found='com.sun.mail';

I guess that this is a result of the above mentioned typo.

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.