Skip to content

apache/logging-admin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repository contains an initial sketch of an Apache Logging Admin API. See the "New API for log level manipulation" thread for more details.

The purpose of the API is to allow the programmatic configuration of the logging backend in an implementation independent way.

import org.apache.logging.admin.LoggingAdmin;

public final class Main {
  private static final Object TOKEN = new Object();

  public static void main(String[] args) {
    int i = 0;
    while (i < args.length) {
      if ("--logLevel".equals(args[i]) && ++i < args.length) {
        LoggingAdmin admin = LoggingAdmin.getInstance(TOKEN);
        admin.setLevel("", args[i]);
      }
      i++;
    }
  }
}

About

Apache Logging Admin API

Topics

Resources

License

Code of conduct

Security policy

Stars

0 stars

Watchers

15 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages