Commit c7341204 authored by Fardale's avatar Fardale

supprission de log4j, on utilise java.util.logging

parent 6537ac12
......@@ -22,6 +22,7 @@ SRC = src/
# The lib directory
LIB = lib/
# Java compiler flags
JAVAFLAGS = -g -d $(BIN) -cp $(SRC):$(LIB)* -target $(JVM) -source $(JVM)
WARNINGFLAGS = -Xlint:all,-unchecked,-serial
......@@ -46,19 +47,22 @@ IMAGEFILES = $(wildcard $(SRC)$(IMG)*.png $(SRC)$(IMG)*.gif $(SRC)$(IMG)*.txt)
# The first target is the one that is executed when you invoke
# "make".
.PHONY: all clean cleandoc
.PHONY: all clean cleandoc hack
all : $(addprefix $(BIN), $(CLASS_FILES))
all : hack $(addprefix $(BIN), $(CLASS_FILES))
@cp -r $(addprefix $(SRC)$(IMG), $(IMAGEDIRS)) $(IMAGEFILES) $(BIN)$(IMG)
@cp -r $(LIB) $(BIN)
@cp src/ bin/
# The line describing the action starts with <TAB>
$(BIN)%.class : $(SRC)
@echo $<
@mkdir -p bin
# Hack pour bin/
hack :
@mkdir -p bin;
buildplay: all
cd bin/; java -cp $(LIB)*:. graphics.guiSkeleton.Igniter_Main
......@@ -4,10 +4,6 @@ import core.abilities.AbilityPackageInitialiser;
import core.abilities.effects.EffectPackageInitialiser;
import graphics.graphical_abstraction.GraphicsMasterAbstraction;
// Log system
import org.apache.log4j.Logger;
import org.apache.log4j.BasicConfigurator;
* Created by dupriez on 10/11/15.
......@@ -16,16 +12,8 @@ import org.apache.log4j.BasicConfigurator;
public class Igniter_Main {
static Logger logger = Logger.getLogger(Igniter_Main.class);
public static void main(String[] args) {
logger.debug("msg de debogage");"msg d'information");
logger.warn("msg d'avertissement");
logger.error("msg d'erreur");
logger.fatal("msg d'erreur fatale");
/** Initialise some packages to detect instantly uncorrect declarations **/
log4j.rootLogger=DEBUG, stdout
log4j.appender.stdout.layout.ConversionPattern=%r [%t] %-5p (%F:%M:%L) %m%n
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