Compare commits
No commits in common. "62815f6d1e1c6ed17559a955386d61df30b04b58" and "88c503a812d3340d7a979dc86b2c323472c28493" have entirely different histories.
62815f6d1e
...
88c503a812
27 changed files with 76 additions and 120 deletions
|
@ -11,8 +11,11 @@
|
||||||
<classpathentry kind="lib" path="lib/commons-codec-1.8.jar" sourcepath="lib/commons-codec-1.8-sources.jar"/>
|
<classpathentry kind="lib" path="lib/commons-codec-1.8.jar" sourcepath="lib/commons-codec-1.8-sources.jar"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
|
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
|
||||||
<classpathentry kind="lib" path="lib/mysql-jdbc-5.0.8.jar"/>
|
<classpathentry kind="lib" path="lib/mysql-jdbc-5.0.8.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/Logs/log4j-1.2.17.jar" sourcepath="lib/Logs/log4j-1.2.17-source.zip"/>
|
||||||
<classpathentry kind="lib" path="lib/UnitTesting/hamcrest-core-1.3.jar" sourcepath="lib/UnitTesting/hamcrest-core-1.3-sources.jar"/>
|
<classpathentry kind="lib" path="lib/UnitTesting/hamcrest-core-1.3.jar" sourcepath="lib/UnitTesting/hamcrest-core-1.3-sources.jar"/>
|
||||||
<classpathentry kind="lib" path="lib/hsqldb-2.3.0.jar"/>
|
<classpathentry kind="lib" path="lib/hsqldb-2.3.0.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/Logs/slf4j-api-1.7.25.jar" sourcepath="lib/Logs/slf4j-api-1.7.25-sources.jar"/>
|
||||||
|
<classpathentry kind="lib" path="lib/Logs/slf4j-log4j12-1.7.25.jar" sourcepath="lib/Logs/slf4j-log4j12-1.7.25-sources.jar"/>
|
||||||
<classpathentry kind="lib" path="lib/UnitTesting/junit-4.12.jar" sourcepath="lib/UnitTesting/junit-4.12-sources.jar"/>
|
<classpathentry kind="lib" path="lib/UnitTesting/junit-4.12.jar" sourcepath="lib/UnitTesting/junit-4.12-sources.jar"/>
|
||||||
<classpathentry kind="lib" path="lib/commons-cli-1.4.jar" sourcepath="lib/commons-cli-1.4-sources.jar"/>
|
<classpathentry kind="lib" path="lib/commons-cli-1.4.jar" sourcepath="lib/commons-cli-1.4-sources.jar"/>
|
||||||
<classpathentry kind="lib" path="lib/commons-io-2.7.jar" sourcepath="lib/commons-io-2.7-sources.jar"/>
|
<classpathentry kind="lib" path="lib/commons-io-2.7.jar" sourcepath="lib/commons-io-2.7-sources.jar"/>
|
||||||
|
@ -24,9 +27,5 @@
|
||||||
<classpathentry kind="lib" path="lib/jOpenDocument-1.3.jar" sourcepath="lib/jOpenDocument-src-1.3.zip"/>
|
<classpathentry kind="lib" path="lib/jOpenDocument-1.3.jar" sourcepath="lib/jOpenDocument-src-1.3.zip"/>
|
||||||
<classpathentry kind="lib" path="lib/threeten-extra-1.5.0.jar" sourcepath="lib/threeten-extra-1.5.0-sources.jar"/>
|
<classpathentry kind="lib" path="lib/threeten-extra-1.5.0.jar" sourcepath="lib/threeten-extra-1.5.0-sources.jar"/>
|
||||||
<classpathentry kind="lib" path="lib/devinsy-strings-0.11.4.jar" sourcepath="lib/devinsy-strings-0.11.4-sources.zip"/>
|
<classpathentry kind="lib" path="lib/devinsy-strings-0.11.4.jar" sourcepath="lib/devinsy-strings-0.11.4-sources.zip"/>
|
||||||
<classpathentry kind="lib" path="lib/Logs/log4j-api-2.17.0.jar" sourcepath="lib/Logs/log4j-api-2.17.0-sources.jar"/>
|
|
||||||
<classpathentry kind="lib" path="lib/Logs/log4j-core-2.17.0.jar" sourcepath="lib/Logs/log4j-core-2.17.0-sources.jar"/>
|
|
||||||
<classpathentry kind="lib" path="lib/Logs/log4j-slf4j-impl-2.17.0.jar" sourcepath="lib/Logs/log4j-slf4j-impl-2.17.0-sources.jar"/>
|
|
||||||
<classpathentry kind="lib" path="lib/Logs/slf4j-api-1.7.32.jar" sourcepath="lib/Logs/slf4j-api-1.7.32-sources.jar"/>
|
|
||||||
<classpathentry kind="output" path="bin"/>
|
<classpathentry kind="output" path="bin"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|
BIN
lib/Logs/log4j-1.2.17-source.zip
Normal file
BIN
lib/Logs/log4j-1.2.17-source.zip
Normal file
Binary file not shown.
BIN
lib/Logs/log4j-1.2.17.jar
Normal file
BIN
lib/Logs/log4j-1.2.17.jar
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
lib/Logs/slf4j-api-1.7.25.jar
Normal file
BIN
lib/Logs/slf4j-api-1.7.25.jar
Normal file
Binary file not shown.
Binary file not shown.
BIN
lib/Logs/slf4j-log4j12-1.7.25-sources.jar
Normal file
BIN
lib/Logs/slf4j-log4j12-1.7.25-sources.jar
Normal file
Binary file not shown.
BIN
lib/Logs/slf4j-log4j12-1.7.25.jar
Normal file
BIN
lib/Logs/slf4j-log4j12-1.7.25.jar
Normal file
Binary file not shown.
13
log4j.properties
Normal file
13
log4j.properties
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
# Log configuration
|
||||||
|
# #################
|
||||||
|
|
||||||
|
# priority setting: DEBUG < INFO < WARN < ERROR
|
||||||
|
log4j.rootLogger = INFO, console
|
||||||
|
log4j.logger.fr.devinsy.statoolinfos = INFO
|
||||||
|
log4j.logger.fr.devinsy.xidyn = WARN
|
||||||
|
|
||||||
|
#--
|
||||||
|
log4j.appender.console = org.apache.log4j.ConsoleAppender
|
||||||
|
log4j.appender.console.layout = org.apache.log4j.PatternLayout
|
||||||
|
#log4j.appender.console.layout.ConversionPattern = %d{ISO8601} - StatoolInfos [%-5p] %34.34c.%25M - %m%n
|
||||||
|
log4j.appender.console.layout.ConversionPattern = %m%n
|
|
@ -1,26 +0,0 @@
|
||||||
# Log configuration
|
|
||||||
# #################
|
|
||||||
|
|
||||||
# priority setting: DEBUG < INFO < WARN < ERROR
|
|
||||||
dest = err
|
|
||||||
name = Log4j2PropertiesConfig
|
|
||||||
status = ERROR
|
|
||||||
|
|
||||||
# Appenders settings.
|
|
||||||
appenders = console
|
|
||||||
|
|
||||||
appender.console.type = Console
|
|
||||||
appender.console.name = LogToConsole
|
|
||||||
appender.console.layout.type = PatternLayout
|
|
||||||
appender.console.layout.pattern = %m%n
|
|
||||||
|
|
||||||
# Logger settings.
|
|
||||||
rootLogger.level = INFO
|
|
||||||
rootLogger.appenderRefs = a
|
|
||||||
rootLogger.appenderRef.a.ref = LogToConsole
|
|
||||||
|
|
||||||
logger.statoolinfos.name = fr.devinsy.statoolinfos
|
|
||||||
logger.statoolinfos.level = INFO
|
|
||||||
|
|
||||||
logger.xidyn.name = fr.devinsy.xidyn
|
|
||||||
logger.xidyn.level = WARN
|
|
21
resources/conf/log4j-default.properties
Normal file
21
resources/conf/log4j-default.properties
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
# Log configuration
|
||||||
|
# #################
|
||||||
|
|
||||||
|
# priority setting: DEBUG < INFO < WARN < ERROR
|
||||||
|
log4j.rootLogger = INFO, stdout, LogWriter
|
||||||
|
log4j.logger.fr.devinsy.statoolinfos = INFO
|
||||||
|
log4j.logger.fr.devinsy.xidyn = INFO
|
||||||
|
|
||||||
|
#--
|
||||||
|
log4j.appender.stdout = org.apache.log4j.ConsoleAppender
|
||||||
|
log4j.appender.stdout.layout = org.apache.log4j.PatternLayout
|
||||||
|
log4j.appender.stdout.layout.ConversionPattern = %m%n
|
||||||
|
|
||||||
|
|
||||||
|
#--
|
||||||
|
log4j.appender.LogWriter = org.apache.log4j.RollingFileAppender
|
||||||
|
log4j.appender.LogWriter.File = /srv/StatoolInfos/tatoolinfos.log
|
||||||
|
log4j.appender.LogWriter.MaxFileSize = 100000KB
|
||||||
|
log4j.appender.LogWriter.MaxBackupIndex = 5
|
||||||
|
log4j.appender.LogWriter.layout = org.apache.log4j.PatternLayout
|
||||||
|
log4j.appender.LogWriter.layout.ConversionPattern = %d{ISO8601} - InfosStatool [%-5p] %34.34c.%-25M - %m%n
|
|
@ -1,26 +0,0 @@
|
||||||
# Log configuration
|
|
||||||
# #################
|
|
||||||
|
|
||||||
# priority setting: DEBUG < INFO < WARN < ERROR
|
|
||||||
dest = err
|
|
||||||
name = Log4j2PropertiesConfig
|
|
||||||
status = ERROR
|
|
||||||
|
|
||||||
# Appenders settings.
|
|
||||||
appenders = console
|
|
||||||
|
|
||||||
appender.console.type = Console
|
|
||||||
appender.console.name = LogToConsole
|
|
||||||
appender.console.layout.type = PatternLayout
|
|
||||||
appender.console.layout.pattern = %m%n
|
|
||||||
|
|
||||||
# Logger settings.
|
|
||||||
rootLogger.level = INFO
|
|
||||||
rootLogger.appenderRefs = a
|
|
||||||
rootLogger.appenderRef.a.ref = LogToConsole
|
|
||||||
|
|
||||||
logger.statoolinfos.name = fr.devinsy.statoolinfos
|
|
||||||
logger.statoolinfos.level = INFO
|
|
||||||
|
|
||||||
logger.xidyn.name = fr.devinsy.xidyn
|
|
||||||
logger.xidyn.level = WARN
|
|
|
@ -20,9 +20,11 @@ package fr.devinsy.statoolinfos;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
|
||||||
import org.apache.logging.log4j.Level;
|
import org.apache.log4j.BasicConfigurator;
|
||||||
import org.apache.logging.log4j.core.config.Configurator;
|
import org.apache.log4j.ConsoleAppender;
|
||||||
import org.apache.logging.log4j.core.config.DefaultConfiguration;
|
import org.apache.log4j.EnhancedPatternLayout;
|
||||||
|
import org.apache.log4j.Level;
|
||||||
|
import org.apache.log4j.PropertyConfigurator;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
|
|
||||||
|
@ -54,14 +56,14 @@ public final class StatoolInfosLauncher
|
||||||
File loggerConfig = new File("log4j.properties");
|
File loggerConfig = new File("log4j.properties");
|
||||||
if (loggerConfig.exists())
|
if (loggerConfig.exists())
|
||||||
{
|
{
|
||||||
Configurator.initialize(null, loggerConfig.getAbsolutePath());
|
PropertyConfigurator.configure(loggerConfig.getAbsolutePath());
|
||||||
logger.info("Dedicated log configuration done.");
|
logger.info("Dedicated log configuration done.");
|
||||||
logger.info("Configuration file was found in [{}].", loggerConfig.getAbsoluteFile());
|
logger.info("Configuration file was found in [{}].", loggerConfig.getAbsoluteFile());
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Configurator.initialize(new DefaultConfiguration());
|
BasicConfigurator.configure(new ConsoleAppender(new EnhancedPatternLayout("%m%n")));
|
||||||
Configurator.setRootLevel(Level.INFO);
|
org.apache.log4j.Logger.getRootLogger().setLevel(Level.INFO);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Run.
|
// Run.
|
||||||
|
|
|
@ -487,7 +487,7 @@ public class Service extends PathPropertyList
|
||||||
{
|
{
|
||||||
long result;
|
long result;
|
||||||
|
|
||||||
MonthValues values = getMetricMonthValues("metrics.service.users");
|
MonthValues values = getMetricMonthValues("metrics.users.count");
|
||||||
|
|
||||||
values = values.extract(YearMonth.now().minusMonths(1), YearMonth.now().minusMonths(1));
|
values = values.extract(YearMonth.now().minusMonths(1), YearMonth.now().minusMonths(1));
|
||||||
|
|
||||||
|
@ -506,7 +506,7 @@ public class Service extends PathPropertyList
|
||||||
{
|
{
|
||||||
long result;
|
long result;
|
||||||
|
|
||||||
MonthValues values = getMetricMonthValues("metrics.http.visits.humans");
|
MonthValues values = getMetricMonthValues("metrics.http.visits.visitors");
|
||||||
|
|
||||||
values = values.extract(YearMonth.now().minusMonths(1), YearMonth.now().minusMonths(1));
|
values = values.extract(YearMonth.now().minusMonths(1), YearMonth.now().minusMonths(1));
|
||||||
|
|
||||||
|
|
|
@ -69,15 +69,9 @@ public class FederationMetricGenericPage
|
||||||
data.setContent("metricMenuView", FederationMetricMenuView.htmlize(federation, TypeMenu.GENERIC, view, period));
|
data.setContent("metricMenuView", FederationMetricMenuView.htmlize(federation, TypeMenu.GENERIC, view, period));
|
||||||
|
|
||||||
//
|
//
|
||||||
FederationMetricHtmlizer.htmlize(data, "graphic.users", federation, view, period, "metrics.service.users", ChartColor.GREEN);
|
FederationMetricHtmlizer.htmlize(data, "users.count", federation, view, period, "metrics.users.count", ChartColor.GREEN);
|
||||||
|
FederationMetricHtmlizer.htmlize(data, "database.bytes", federation, view, period, "metrics.database.bytes", ChartColor.GREEN);
|
||||||
FederationMetricHtmlizer.htmlize(data, "graphic.accounts.combo", federation, view, period, "Accounts + active", "metrics.service.accounts", ChartColor.YELLOW,
|
FederationMetricHtmlizer.htmlize(data, "files.bytes", federation, view, period, "metrics.http.visits.visitors", ChartColor.GREEN);
|
||||||
"metrics.service.accounts.active", ChartColor.GREEN);
|
|
||||||
FederationMetricHtmlizer.htmlize(data, "graphic.accounts", federation, view, period, "metrics.service.accounts", ChartColor.GREEN);
|
|
||||||
FederationMetricHtmlizer.htmlize(data, "graphic.accounts.active", federation, view, period, "metrics.service.accounts.active", ChartColor.GREEN);
|
|
||||||
|
|
||||||
FederationMetricHtmlizer.htmlize(data, "graphic.database.bytes", federation, view, period, "metrics.service.database.bytes", ChartColor.GREEN);
|
|
||||||
FederationMetricHtmlizer.htmlize(data, "graphic.files.bytes", federation, view, period, "metrics.service.files.bytes", ChartColor.GREEN);
|
|
||||||
|
|
||||||
//
|
//
|
||||||
String content = PresenterUtils.dynamize("/fr/devinsy/statoolinfos/htmlize/serviceMetricGenericView.xhtml", data).toString();
|
String content = PresenterUtils.dynamize("/fr/devinsy/statoolinfos/htmlize/serviceMetricGenericView.xhtml", data).toString();
|
||||||
|
|
|
@ -70,17 +70,12 @@ public class OrganizationMetricGenericPage
|
||||||
data.setContent("metricMenuView", OrganizationMetricMenuView.htmlize(organization, TypeMenu.GENERIC, view, period));
|
data.setContent("metricMenuView", OrganizationMetricMenuView.htmlize(organization, TypeMenu.GENERIC, view, period));
|
||||||
|
|
||||||
//
|
//
|
||||||
OrganizationMetricHtmlizer.htmlize(data, "graphic.users", organization, view, period, "metrics.service.users", ChartColor.GREEN);
|
OrganizationMetricHtmlizer.htmlize(data, "users.count", organization, view, period, "metrics.users.count", ChartColor.GREEN);
|
||||||
|
OrganizationMetricHtmlizer.htmlize(data, "database.bytes", organization, view, period, "metrics.database.bytes", ChartColor.GREEN);
|
||||||
OrganizationMetricHtmlizer.htmlize(data, "graphic.accounts.combo", organization, view, period, "Accounts + active", "metrics.service.accounts", ChartColor.YELLOW,
|
OrganizationMetricHtmlizer.htmlize(data, "files.bytes", organization, view, period, "metrics.http.visits.visitors", ChartColor.GREEN);
|
||||||
"metrics.service.accounts.active", ChartColor.GREEN);
|
|
||||||
OrganizationMetricHtmlizer.htmlize(data, "graphic.accounts", organization, view, period, "metrics.service.accounts", ChartColor.GREEN);
|
|
||||||
OrganizationMetricHtmlizer.htmlize(data, "graphic.accounts.active", organization, view, period, "metrics.service.accounts.active", ChartColor.GREEN);
|
|
||||||
OrganizationMetricHtmlizer.htmlize(data, "graphic.database.bytes", organization, view, period, "metrics.service.database.bytes", ChartColor.GREEN);
|
|
||||||
OrganizationMetricHtmlizer.htmlize(data, "graphic.files.bytes", organization, view, period, "metrics.service.files.bytes", ChartColor.GREEN);
|
|
||||||
|
|
||||||
//
|
//
|
||||||
String content = PresenterUtils.dynamize("/fr/devinsy/statoolinfos/htmlize/serviceMetricGenericView.xhtml", data).toString();
|
String content = PresenterUtils.dynamize("/fr/devinsy/statoolinfos/htmlize/serviceMetricSummaryView.xhtml", data).toString();
|
||||||
|
|
||||||
BreadcrumbTrail trail = new BreadcrumbTrail();
|
BreadcrumbTrail trail = new BreadcrumbTrail();
|
||||||
trail.add(organization.getName(), organization.getLocalFileBaseName() + ".xhtml");
|
trail.add(organization.getName(), organization.getLocalFileBaseName() + ".xhtml");
|
||||||
|
|
|
@ -70,21 +70,9 @@ public class ServiceMetricGenericPage
|
||||||
data.setContent("metricMenuView", ServiceMetricMenuView.htmlize(service, TypeMenu.GENERIC, view, period));
|
data.setContent("metricMenuView", ServiceMetricMenuView.htmlize(service, TypeMenu.GENERIC, view, period));
|
||||||
|
|
||||||
//
|
//
|
||||||
ServiceMetricHtmlizer.htmlize(data, "graphic.users", service, view, period, "metrics.service.users", ChartColor.GREEN);
|
ServiceMetricHtmlizer.htmlize(data, "users.count", service, view, period, "metrics.users.count", ChartColor.GREEN);
|
||||||
|
ServiceMetricHtmlizer.htmlize(data, "database.bytes", service, view, period, "metrics.database.bytes", ChartColor.GREEN);
|
||||||
ServiceMetricHtmlizer.htmlize(data, "graphic.accounts.combo", service, view, period, "Accounts + active", "metrics.service.accounts", ChartColor.YELLOW,
|
ServiceMetricHtmlizer.htmlize(data, "files.bytes", service, view, period, "metrics.http.visits.visitors", ChartColor.GREEN);
|
||||||
"metrics.service.accounts.active", ChartColor.GREEN);
|
|
||||||
ServiceMetricHtmlizer.htmlize(data, "graphic.accounts", service, view, period, "metrics.service.accounts", ChartColor.GREEN);
|
|
||||||
ServiceMetricHtmlizer.htmlize(data, "graphic.accounts.active", service, view, period, "metrics.service.accounts.active", ChartColor.GREEN);
|
|
||||||
|
|
||||||
ServiceMetricHtmlizer.htmlize(data, "graphic.database.bytes", service, view, period, "metrics.service.database.bytes", ChartColor.GREEN);
|
|
||||||
ServiceMetricHtmlizer.htmlize(data, "graphic.files.bytes", service, view, period, "metrics.service.files.bytes", ChartColor.GREEN);
|
|
||||||
|
|
||||||
// metrics.moderation.accounts.reported.* =
|
|
||||||
// metrics.moderation.accounts.sanctioned.* =
|
|
||||||
// metrics.moderation.accounts.disabled.* =
|
|
||||||
// metrics.moderation.accounts.silenced.* =
|
|
||||||
// metrics.moderation.accounts.cancelled.* =
|
|
||||||
|
|
||||||
//
|
//
|
||||||
String content = PresenterUtils.dynamize("/fr/devinsy/statoolinfos/htmlize/serviceMetricGenericView.xhtml", data).toString();
|
String content = PresenterUtils.dynamize("/fr/devinsy/statoolinfos/htmlize/serviceMetricGenericView.xhtml", data).toString();
|
||||||
|
|
|
@ -16,15 +16,11 @@
|
||||||
<div id="metricMenuView" />
|
<div id="metricMenuView" />
|
||||||
<div id="charts" style="display: block;">
|
<div id="charts" style="display: block;">
|
||||||
<h2>Utilisateurs</h2>
|
<h2>Utilisateurs</h2>
|
||||||
<div id="graphic.users" style="width: 450px; height: 300px; display: inline-block; border: 1px solid #e7e7e7;"/>
|
<div id="users.count" style="width: 450px; height: 300px; display: inline-block; border: 1px solid #e7e7e7;"/>
|
||||||
<br/>
|
|
||||||
<div id="graphic.accounts.combo" style="width: 450px; height: 300px; display: inline-block; border: 1px solid #e7e7e7;"/>
|
|
||||||
<div id="graphic.accounts" style="width: 450px; height: 300px; display: inline-block; border: 1px solid #e7e7e7;"/>
|
|
||||||
<div id="graphic.accounts.active" style="width: 450px; height: 300px; display: inline-block; border: 1px solid #e7e7e7;"/>
|
|
||||||
|
|
||||||
<h2>Données</h2>
|
<h2>Données</h2>
|
||||||
<div id="graphic.database.bytes" style="width: 450px; height: 300px; display: inline-block; border: 1px solid #e7e7e7;"/>
|
<div id="database.bytes" style="width: 450px; height: 300px; display: inline-block; border: 1px solid #e7e7e7;"/>
|
||||||
<div id="graphic.files.bytes" style="width: 450px; height: 300px; display: inline-block; border: 1px solid #e7e7e7;"/>
|
<div id="files.bytes" style="width: 450px; height: 300px; display: inline-block; border: 1px solid #e7e7e7;"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
|
@ -18,9 +18,9 @@
|
||||||
*/
|
*/
|
||||||
package fr.devinsy.statoolinfos.core;
|
package fr.devinsy.statoolinfos.core;
|
||||||
|
|
||||||
import org.apache.logging.log4j.Level;
|
import org.apache.log4j.BasicConfigurator;
|
||||||
import org.apache.logging.log4j.core.config.Configurator;
|
import org.apache.log4j.Level;
|
||||||
import org.apache.logging.log4j.core.config.DefaultConfiguration;
|
import org.apache.log4j.Logger;
|
||||||
import org.junit.AfterClass;
|
import org.junit.AfterClass;
|
||||||
import org.junit.BeforeClass;
|
import org.junit.BeforeClass;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
@ -60,7 +60,7 @@ public class StatoolInfosTest
|
||||||
@BeforeClass
|
@BeforeClass
|
||||||
public static void beforeClass() throws StatoolInfosException
|
public static void beforeClass() throws StatoolInfosException
|
||||||
{
|
{
|
||||||
Configurator.initialize(new DefaultConfiguration());
|
BasicConfigurator.configure();
|
||||||
Configurator.setRootLevel(Level.DEBUG);
|
Logger.getRootLogger().setLevel(Level.DEBUG);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,9 +18,9 @@
|
||||||
*/
|
*/
|
||||||
package fr.devinsy.statoolinfos.metrics.http;
|
package fr.devinsy.statoolinfos.metrics.http;
|
||||||
|
|
||||||
import org.apache.logging.log4j.Level;
|
import org.apache.log4j.BasicConfigurator;
|
||||||
import org.apache.logging.log4j.core.config.Configurator;
|
import org.apache.log4j.Level;
|
||||||
import org.apache.logging.log4j.core.config.DefaultConfiguration;
|
import org.apache.log4j.Logger;
|
||||||
import org.junit.AfterClass;
|
import org.junit.AfterClass;
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
import org.junit.BeforeClass;
|
import org.junit.BeforeClass;
|
||||||
|
@ -72,7 +72,7 @@ public class UserAgentBotDetectorTest
|
||||||
@BeforeClass
|
@BeforeClass
|
||||||
public static void beforeClass() throws StatoolInfosException
|
public static void beforeClass() throws StatoolInfosException
|
||||||
{
|
{
|
||||||
Configurator.initialize(new DefaultConfiguration());
|
BasicConfigurator.configure();
|
||||||
Configurator.setRootLevel(Level.DEBUG);
|
Logger.getRootLogger().setLevel(Level.DEBUG);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,9 +20,9 @@ package fr.devinsy.statoolinfos.metrics.http;
|
||||||
|
|
||||||
import java.time.LocalDateTime;
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
import org.apache.logging.log4j.Level;
|
import org.apache.log4j.BasicConfigurator;
|
||||||
import org.apache.logging.log4j.core.config.Configurator;
|
import org.apache.log4j.Level;
|
||||||
import org.apache.logging.log4j.core.config.DefaultConfiguration;
|
import org.apache.log4j.Logger;
|
||||||
import org.junit.AfterClass;
|
import org.junit.AfterClass;
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
import org.junit.BeforeClass;
|
import org.junit.BeforeClass;
|
||||||
|
@ -271,7 +271,7 @@ public class VisitCountersTest
|
||||||
@BeforeClass
|
@BeforeClass
|
||||||
public static void beforeClass() throws StatoolInfosException
|
public static void beforeClass() throws StatoolInfosException
|
||||||
{
|
{
|
||||||
Configurator.initialize(new DefaultConfiguration());
|
BasicConfigurator.configure();
|
||||||
Configurator.setRootLevel(Level.DEBUG);
|
Logger.getRootLogger().setLevel(Level.DEBUG);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue