Skip to content

judby/usl4j

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

usl4j

Ultra Simple Logging for JAVA (usl4j)

The Ultra Simple Logging for JAVA (usl4j) is a KISS wrapper around standard JDK logging that gives your application a much simpler API. No magic applied, just simplicity.

Building usl4j

git clone git@github.com:judby/usl4j.git
mvn install -DskipTests

Write Application Code

The following sample illustrates how to use the Logger and LoggerFactory.

    import java.util.Date;
    import net.udby.usl4j.Logger;
    import net.udby.usl4j.LoggerFactory;

    public class SampleCode {
        private static final Logger logger = LoggerFactory.getLogger();

        /**
         * @param args
         */
        public static void main(String[] args) {
            logger.config("user={0}", System.getProperty("user.name"));
            logger.info("started={0}", new Date());
            logger.error("error", new Exception());
        }
    }

About

Ultra Simple Logging for JAVA (usl4j) JDK implementation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages