Commit fa76ce39 authored by R.W.Majeed's avatar R.W.Majeed

Fixed incomplete logging configuration

parent 14646bf6
.level=WARNING
handlers = java.util.logging.ConsoleHandler
java.util.logging.ConsoleHandler.level = ALL
.level = INFO
\ No newline at end of file
@ECHO OFF
REM Distribution
SET mydir=%~dp0
java -Djava.util.logging.config.file="%mydir%\logging.properties" -cp "%mydir%\lib\*" de.sekmi.histream.impl.LoggingDemo
@ECHO OFF
REM ${name}
SET mydir="%~dp0"
java -Djava.util.logging.config.file=logging.properties -cp lib\* de.sekmi.histream.impl.RunConfiguration %*
SET mydir=%~dp0
java -Djava.util.logging.config.file="%mydir%\logging.properties" -cp "%mydir%\lib\*" de.sekmi.histream.impl.RunConfiguration %*
package de.sekmi.histream.impl;
import java.util.logging.Logger;
public class LoggingDemo {
private static final Logger log = Logger.getLogger(LoggingDemo.class.getName());
public static void main(String[] args) {
log.finest("finest");
log.finer("finest");
log.fine("fine");
log.info("info");
log.config("config");
log.warning("warning");
log.severe("severe");
System.out.println("Wrote 7 example messages to logging");
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment