Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A Very Simple Logger

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

AVSL - A Very Simple Logger

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.

Copyright and License

AVSL is copyright © 2010-2011 Brian M. Clapper and is released under a BSD license. See the accompanying license file for details.

Something went wrong with that request. Please try again.