Removed useless logger variable.

This commit is contained in:
Christian P. MOMON 2024-08-14 23:34:33 +02:00
parent 2ab08cca77
commit 8ca626039a
93 changed files with 53 additions and 403 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2023 Christian Pierre MOMON <christian@momon.org>
* Copyright (C) 2020-2024 Christian Pierre MOMON <christian@momon.org>
*
* This file is part of StatoolInfos, simple service statistics tool.
*
@ -19,16 +19,12 @@
package fr.devinsy.statoolinfos.cli;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* The Class CLIUtils.
*/
public final class CLIUtils
{
private static Logger logger = LoggerFactory.getLogger(CLIUtils.class);
/**
* Instantiates a new statool infos CLI.
*/

View file

@ -23,8 +23,6 @@ import java.net.URL;
import java.time.LocalDateTime;
import org.apache.commons.io.FilenameUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.checker.PropertyChecks;
import fr.devinsy.statoolinfos.properties.PathProperties;
@ -37,8 +35,6 @@ public class Metrics extends PathPropertyList
{
private static final long serialVersionUID = -1608084706095266037L;
private static Logger logger = LoggerFactory.getLogger(Metrics.class);
private String localFileNamePrefix;
private File inputFile;
private URL inputURL;

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2022 Christian Pierre MOMON <christian@momon.org>
* Copyright (C) 2020-2024 Christian Pierre MOMON <christian@momon.org>
*
* This file is part of StatoolInfos, simple service statistics tool.
*
@ -27,8 +27,6 @@ import java.time.YearMonth;
import org.apache.commons.codec.digest.DigestUtils;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.checker.PropertyChecks;
import fr.devinsy.statoolinfos.crawl.CrawlJournal;
@ -45,8 +43,6 @@ public class Service extends PathPropertyList
{
private static final long serialVersionUID = 3629841771102288863L;
private static Logger logger = LoggerFactory.getLogger(Service.class);
public enum HostProviderType
{
HOME,

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2022 Christian Pierre MOMON <christian@momon.org>
* Copyright (C) 2020-2024 Christian Pierre MOMON <christian@momon.org>
*
* This file is part of StatoolInfos, simple service statistics tool.
*
@ -50,8 +50,6 @@ import org.apache.tika.Tika;
import org.apache.tika.mime.MimeType;
import org.apache.tika.mime.MimeTypeException;
import org.apache.tika.mime.MimeTypes;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.strings.StringList;
import fr.devinsy.strings.StringsUtils;
@ -61,8 +59,6 @@ import fr.devinsy.strings.StringsUtils;
*/
public class StatoolInfosUtils
{
private static Logger logger = LoggerFactory.getLogger(StatoolInfosUtils.class);
public static final DateTimeFormatter PATTERN_SHORTDATE = DateTimeFormatter.ofPattern("dd/MM/yyyy", Locale.FRANCE);
public static final DateTimeFormatter PATTERN_LONGDATE = DateTimeFormatter.ofPattern("dd/MM/yyyy HH':'mm", Locale.FRANCE);

View file

@ -22,8 +22,6 @@ import java.io.File;
import java.io.IOException;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.core.Categories;
import fr.devinsy.statoolinfos.core.Organization;
@ -39,8 +37,6 @@ import fr.devinsy.strings.StringSet;
*/
public class CSVFile
{
private static final Logger logger = LoggerFactory.getLogger(CSVFile.class);
public static final int MAX_LINE_SIZE = 4096;
public static final String SEPARATOR = ";";

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2021-2023 Christian Pierre MOMON <christian@momon.org>
* Copyright (C) 2021-2024 Christian Pierre MOMON <christian@momon.org>
*
* This file is part of StatoolInfos, simple service statistics tool.
*
@ -29,16 +29,12 @@ import java.nio.charset.StandardCharsets;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* The Class CSVWriter.
*/
public class CSVWriter implements SpreadsheetWriter
{
private static final Logger logger = LoggerFactory.getLogger(CSVWriter.class);
private char separator;
private PrintWriter out;
private boolean isNewline;

View file

@ -24,8 +24,6 @@ import java.io.UnsupportedEncodingException;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.text.StringEscapeUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.core.Categories;
import fr.devinsy.statoolinfos.core.Federation;
@ -43,8 +41,6 @@ import fr.devinsy.strings.StringsUtils;
*/
public class JSONFile
{
private static final Logger logger = LoggerFactory.getLogger(JSONFile.class);
/**
* Escape.
*

View file

@ -21,9 +21,6 @@ package fr.devinsy.statoolinfos.io;
import java.io.File;
import java.io.IOException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.core.Categories;
import fr.devinsy.statoolinfos.core.Organizations;
import fr.devinsy.statoolinfos.core.Services;
@ -33,8 +30,6 @@ import fr.devinsy.statoolinfos.core.Services;
*/
public class ODSFile
{
private static final Logger logger = LoggerFactory.getLogger(ODSFile.class);
public static final int MAX_LINE_SIZE = 1024;
protected enum Status

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2021 Christian Pierre MOMON <christian@momon.org>
* Copyright (C) 2021-2024 Christian Pierre MOMON <christian@momon.org>
*
* This file is part of StatoolInfos, simple service statistics tool.
*
@ -28,16 +28,12 @@ import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.math.NumberUtils;
import org.jopendocument.dom.spreadsheet.Sheet;
import org.jopendocument.dom.spreadsheet.SpreadSheet;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* The Class ODSWriter.
*/
public class ODSWriter implements SpreadsheetWriter
{
private static final Logger logger = LoggerFactory.getLogger(ODSWriter.class);
private File file;
private SpreadSheet workbook;
private Sheet currentSheet;

View file

@ -20,9 +20,6 @@ package fr.devinsy.statoolinfos.metrics;
import java.time.YearMonth;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.properties.MonthValues;
import fr.devinsy.strings.StringList;
@ -31,8 +28,6 @@ import fr.devinsy.strings.StringList;
*/
public class Metric
{
private static Logger logger = LoggerFactory.getLogger(Metric.class);
public enum Type
{
MONTHS,
@ -113,6 +108,16 @@ public class Metric
return this.name;
}
/**
* Gets the path.
*
* @return the path
*/
public String getPath()
{
return this.path;
}
/**
* Gets the start year.
*

View file

@ -18,16 +18,11 @@
*/
package fr.devinsy.statoolinfos.metrics;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* The Class PathCounter.
*/
public class PathCounter
{
private static Logger logger = LoggerFactory.getLogger(PathCounter.class);
private String path;
private String timeMark;
private long counter;

View file

@ -18,16 +18,11 @@
*/
package fr.devinsy.statoolinfos.metrics;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* The Class StringCounter.
*/
public class StringCounter
{
private static Logger logger = LoggerFactory.getLogger(StringCounter.class);
private String string;
private long counter;

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2021 Christian Pierre MOMON <christian@momon.org>
* Copyright (C) 2021-2024 Christian Pierre MOMON <christian@momon.org>
*
* This file is part of StatoolInfos, simple service statistics tool.
*
@ -25,16 +25,11 @@ import java.time.format.DateTimeFormatter;
import java.util.Locale;
import java.util.regex.Matcher;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* The Class TimeMark.
*/
public class TimeMark
{
private static Logger logger = LoggerFactory.getLogger(TimeMark.class);
private String value;
/**

View file

@ -1,5 +1,5 @@
/*
* Copyright (C) 2022 Christian Pierre MOMON <christian@momon.org>
* Copyright (C) 2022-2024 Christian Pierre MOMON <christian@momon.org>
*
* This file is part of StatoolInfos, simple service statistics tool.
*
@ -26,8 +26,6 @@ import java.time.format.DateTimeFormatter;
import java.util.Locale;
import java.util.regex.Pattern;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.threeten.extra.YearWeek;
/**
@ -35,8 +33,6 @@ import org.threeten.extra.YearWeek;
*/
public class TimeMarkUtils
{
private static Logger logger = LoggerFactory.getLogger(TimeMarkUtils.class);
public static final Pattern YEAR_PATTERN = Pattern.compile("^(?<year>\\d{4})$");
public static final Pattern YEAR_MONTH_PATTERN = Pattern.compile("^(?<year>\\d{4})-(?<month>\\d{2})$");
public static final Pattern YEAR_WEEK_PATTERN = Pattern.compile("^(?<year>\\d{4})-W(?<week>\\d{2})$");

View file

@ -21,9 +21,6 @@ package fr.devinsy.statoolinfos.metrics.etherpad;
import java.io.IOException;
import java.util.regex.Pattern;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.core.StatoolInfosException;
import fr.devinsy.statoolinfos.metrics.PathCounters;
import fr.devinsy.statoolinfos.metrics.UserCounters;
@ -35,8 +32,6 @@ import fr.devinsy.statoolinfos.metrics.httpaccess.HttpAccessLogs;
*/
public class EtherpadHttpLogAnalyzer
{
private static Logger logger = LoggerFactory.getLogger(EtherpadHttpLogAnalyzer.class);
public static final Pattern USE_PATTERN = Pattern.compile("^GET /p/\\S+ .*$");
private PathCounters counters;

View file

@ -22,9 +22,6 @@ import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Locale;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.metrics.TimeMark;
import fr.devinsy.statoolinfos.metrics.TimeMarkUtils;
import fr.devinsy.strings.StringList;
@ -34,8 +31,6 @@ import fr.devinsy.strings.StringList;
*/
public class EtherpadLog
{
private static Logger logger = LoggerFactory.getLogger(EtherpadLog.class);
private LocalDateTime time;
private String level;
private String type;

View file

@ -31,16 +31,12 @@ import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
import org.json.simple.parser.ParseException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* The Class GiteaAPI.
*/
public class GiteaAPI
{
private static Logger logger = LoggerFactory.getLogger(GiteaAPI.class);
private String url;
private String token;
private JSONArray users;
@ -67,15 +63,15 @@ public class GiteaAPI
this.token = token;
//
String json = IOUtils.toString(new URL(this.url + "/api/v1/admin/users?limit=100000&token=" + token), Charset.defaultCharset());
String json = IOUtils.toString(new URL(this.url + "/api/v1/admin/users?limit=100000&token=" + this.token), Charset.defaultCharset());
this.users = (JSONArray) (new JSONParser().parse(json));
//
json = IOUtils.toString(new URL(this.url + "/api/v1/admin/orgs?limit=100000&token=" + token), Charset.defaultCharset());
json = IOUtils.toString(new URL(this.url + "/api/v1/admin/orgs?limit=100000&token=" + this.token), Charset.defaultCharset());
this.organizations = (JSONArray) (new JSONParser().parse(json));
//
json = IOUtils.toString(new URL(this.url + "/api/v1/repos/search?limit=100000&token=" + token), Charset.defaultCharset());
json = IOUtils.toString(new URL(this.url + "/api/v1/repos/search?limit=100000&token=" + this.token), Charset.defaultCharset());
this.repositories = (JSONArray) ((JSONObject) (new JSONParser().parse(json))).get("data");
}
catch (IOException exception)

View file

@ -24,8 +24,6 @@ import java.io.IOException;
import java.util.Properties;
import org.apache.commons.lang3.math.NumberUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.core.StatoolInfosException;
import fr.devinsy.statoolinfos.metrics.PathCounters;
@ -36,8 +34,6 @@ import fr.devinsy.strings.StringList;
*/
public class GSLProber
{
private static Logger logger = LoggerFactory.getLogger(GSLProber.class);
/**
* Instantiates a new GSL prober.
*/

View file

@ -25,9 +25,6 @@ import java.time.format.DateTimeFormatter;
import java.util.Locale;
import java.util.regex.Pattern;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.metrics.TimeMarkUtils;
import fr.devinsy.strings.StringList;
@ -37,8 +34,6 @@ import fr.devinsy.strings.StringList;
*/
public class HttpAccessLog
{
private static Logger logger = LoggerFactory.getLogger(HttpAccessLog.class);
public static final Pattern ASSET_PATTERN = Pattern.compile("^.*\\.(avi|css|gif|ico|jpeg|jpg|js|mp3|mp4|ogg|png|svg|wav) HTTP.*$");
private String ip;

View file

@ -23,8 +23,6 @@ import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.core.StatoolInfosException;
import fr.devinsy.statoolinfos.metrics.IpCounters;
@ -36,8 +34,6 @@ import fr.devinsy.strings.StringList;
*/
public class HttpAccessLogAnalyzer
{
private static Logger logger = LoggerFactory.getLogger(HttpAccessLogAnalyzer.class);
private int ignoredLineCount;
private int errorCount;
private PathCounters counters;

View file

@ -18,7 +18,6 @@
*/
package fr.devinsy.statoolinfos.metrics.httpaccess;
import java.time.LocalDateTime;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;
import java.time.format.DateTimeParseException;
@ -26,16 +25,11 @@ import java.util.Locale;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* The Class HttpAccessLogParser.
*/
public class HttpAccessLogParser
{
private static Logger logger = LoggerFactory.getLogger(HttpAccessLogParser.class);
// log_format combined '$remote_addr - $remote_user [$time_local] '
// '"$request" $status $body_bytes_sent '
// '"$http_referer" "$http_user_agent"';
@ -119,9 +113,6 @@ public class HttpAccessLogParser
Matcher matcher = pattern.matcher(line);
if (matcher.matches())
{
ZonedDateTime a = ZonedDateTime.now();
LocalDateTime b = a.toLocalDateTime();
result = new HttpAccessLog();
result.setIp(matcher.group("remoteAddress"));
result.setRemoteUser(matcher.group("remoteUser"));

View file

@ -18,16 +18,11 @@
*/
package fr.devinsy.statoolinfos.metrics.httpaccess;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* The Class HttpAccesLogStat.
*/
public class HttpAccessLogStat
{
private static Logger logger = LoggerFactory.getLogger(HttpAccessLogStat.class);
private int hitCount;
private int hitIpv4Count;
private int hitIpv6Count;

View file

@ -22,9 +22,6 @@ import java.io.File;
import java.io.IOException;
import java.util.Iterator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.util.Files;
/**
@ -32,8 +29,6 @@ import fr.devinsy.statoolinfos.util.Files;
*/
public class HttpAccessLogs implements Iterable<HttpAccessLog>
{
private static Logger logger = LoggerFactory.getLogger(HttpAccessLogs.class);
private Files source;
private String pattern;
private String datePattern;

View file

@ -18,16 +18,11 @@
*/
package fr.devinsy.statoolinfos.metrics.httpaccess;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* The Class HttpStatus.
*/
public class HttpStatus
{
private static Logger logger = LoggerFactory.getLogger(HttpStatus.class);
private int code;
private String message;
private String description;

View file

@ -21,23 +21,18 @@ package fr.devinsy.statoolinfos.metrics.httpaccess;
import java.util.HashMap;
import java.util.regex.Pattern;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* The Class HttpStatusTable.
*/
public class HttpStatusTable
{
public static final Pattern HTTP_CODE_PATTERN = Pattern.compile("\\d{3}");
private static class SingletonHolder
{
private static final HttpStatusTable instance = new HttpStatusTable();
}
private static Logger logger = LoggerFactory.getLogger(HttpStatusTable.class);
public static final Pattern HTTP_CODE_PATTERN = Pattern.compile("\\d{3}");
private HashMap<Integer, HttpStatus> codes;
/**

View file

@ -19,8 +19,6 @@
package fr.devinsy.statoolinfos.metrics.httpaccess;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.strings.StringList;
import fr.devinsy.strings.StringsUtils;
@ -30,8 +28,6 @@ import fr.devinsy.strings.StringsUtils;
*/
public class UserAgent
{
private static Logger logger = LoggerFactory.getLogger(UserAgent.class);
private String source;
/**

View file

@ -21,8 +21,6 @@ package fr.devinsy.statoolinfos.metrics.httpaccess;
import java.io.IOException;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.strings.StringList;
import fr.devinsy.strings.StringsUtils;
@ -32,8 +30,6 @@ import fr.devinsy.strings.StringsUtils;
*/
public class UserAgentBotDetector
{
private static Logger logger = LoggerFactory.getLogger(UserAgentBotDetector.class);
private static final StringList startList = new StringList();
private static final StringList containList = new StringList();

View file

@ -23,17 +23,13 @@ import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.YearMonth;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.threeten.extra.YearWeek;
/**
* The Class PathCounter.
* The Class Visit.
*/
public class Visit
{
private static Logger logger = LoggerFactory.getLogger(Visit.class);
private LocalDateTime start;
private LocalDateTime end;

View file

@ -22,9 +22,6 @@ import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Locale;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.metrics.TimeMarkUtils;
import fr.devinsy.strings.StringList;
@ -39,8 +36,6 @@ import fr.devinsy.strings.StringList;
*/
public class HttpErrorLog
{
private static Logger logger = LoggerFactory.getLogger(HttpErrorLog.class);
private LocalDateTime time;
private String level;
private String message;

View file

@ -21,8 +21,6 @@ package fr.devinsy.statoolinfos.metrics.httperrorlog;
import java.io.IOException;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.core.StatoolInfosException;
import fr.devinsy.statoolinfos.metrics.PathCounters;
@ -33,8 +31,6 @@ import fr.devinsy.strings.StringList;
*/
public class HttpErrorLogAnalyzer
{
private static Logger logger = LoggerFactory.getLogger(HttpErrorLogAnalyzer.class);
private PathCounters counters;
/**

View file

@ -25,16 +25,11 @@ import java.util.Locale;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* The Class HttpErrorLogParser.
*/
public class HttpErrorLogParser
{
private static Logger logger = LoggerFactory.getLogger(HttpErrorLogParser.class);
public static final Pattern APACHE_ERROR_PATTERN = Pattern.compile("^\\[(?<time>[^\\]]+)\\]\\s\\[(?<level>[^\\]]*)\\]\\s(?<message>.*)$");
public static final Pattern NGINX_ERROR_PATTERN = Pattern.compile("^(?<time>\\S+\\s\\S+)\\s\\[(?<level>[^\\]]*)\\]\\s(?<message>.*)$");

View file

@ -22,9 +22,6 @@ import java.io.File;
import java.io.IOException;
import java.util.Iterator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.util.Files;
/**
@ -32,8 +29,6 @@ import fr.devinsy.statoolinfos.util.Files;
*/
public class HttpErrorLogs implements Iterable<HttpErrorLog>
{
private static Logger logger = LoggerFactory.getLogger(HttpErrorLogs.class);
private Files source;
private String pattern;
private String datePattern;

View file

@ -20,9 +20,6 @@ package fr.devinsy.statoolinfos.metrics.jitsi;
import java.io.IOException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.core.StatoolInfosException;
import fr.devinsy.statoolinfos.metrics.PathCounters;
@ -31,8 +28,6 @@ import fr.devinsy.statoolinfos.metrics.PathCounters;
*/
public class JitsiProber
{
private static Logger logger = LoggerFactory.getLogger(JitsiProber.class);
/**
* Instantiates a new jitsi prober.
*/

View file

@ -22,9 +22,6 @@ import java.io.File;
import java.io.IOException;
import java.util.regex.Pattern;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.core.StatoolInfosException;
import fr.devinsy.statoolinfos.metrics.PathCounters;
import fr.devinsy.statoolinfos.metrics.UserCounters;
@ -37,8 +34,6 @@ import fr.devinsy.statoolinfos.metrics.util.DatafilesProber;
*/
public class LibreQRProber
{
private static Logger logger = LoggerFactory.getLogger(LibreQRProber.class);
/**
* Instantiates a new privatebin prober.
*/

View file

@ -24,9 +24,6 @@ import java.util.Locale;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.metrics.TimeMarkUtils;
import fr.devinsy.strings.StringList;
@ -35,9 +32,7 @@ import fr.devinsy.strings.StringList;
*/
public class MinetestLog
{
private static Logger logger = LoggerFactory.getLogger(MinetestLog.class);
// Cpm [2a01:e0a:22:ce10::adc5:a] joins game. List of players: Cpm
// Cpm [fc00:e0a:22:ce10::adc5:a] joins game. List of players: Cpm
public static final Pattern JOIN_PATTERN = Pattern.compile("^(?<nickname>\\S+) \\[(?<ip>.+)\\] joins game\\..*$");
public static final Pattern NICK_PATTERN = Pattern
.compile(

View file

@ -92,6 +92,16 @@ public class MinetestLogAnalyzer
return result;
}
/**
* Gets the error count.
*
* @return the error count
*/
public int getErrorCount()
{
return this.errorCount;
}
/**
* Probe.
*

View file

@ -20,9 +20,6 @@ package fr.devinsy.statoolinfos.metrics.mumble;
import java.io.IOException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.core.StatoolInfosException;
import fr.devinsy.statoolinfos.metrics.PathCounters;
@ -31,8 +28,6 @@ import fr.devinsy.statoolinfos.metrics.PathCounters;
*/
public class MumbleDatabaseAnalyzer
{
private static Logger logger = LoggerFactory.getLogger(MumbleDatabaseAnalyzer.class);
/**
* Instantiates a new http access log prober.
*/

View file

@ -24,9 +24,6 @@ import java.util.Locale;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.metrics.TimeMarkUtils;
import fr.devinsy.strings.StringList;
@ -35,8 +32,6 @@ import fr.devinsy.strings.StringList;
*/
public class MumbleLog
{
private static Logger logger = LoggerFactory.getLogger(MumbleLog.class);
// 1 => <8:neox(-1)> Authenticated
public static final Pattern NICK_PATTERN = Pattern.compile("^\\d+ => <\\d+:(?<nick>\\S+)\\(-?\\d+\\)> Authenticated$");

View file

@ -98,6 +98,16 @@ public class MumbleLogAnalyzer
return result;
}
/**
* Gets the error count.
*
* @return the error count
*/
public int getErrorCount()
{
return this.errorCount;
}
/**
* Probe.
*

View file

@ -20,9 +20,6 @@ package fr.devinsy.statoolinfos.metrics.mumble;
import java.io.IOException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.core.StatoolInfosException;
import fr.devinsy.statoolinfos.metrics.PathCounters;
@ -31,8 +28,6 @@ import fr.devinsy.statoolinfos.metrics.PathCounters;
*/
public class MumbleProber
{
private static Logger logger = LoggerFactory.getLogger(MumbleProber.class);
/**
* Instantiates a new minetest prober.
*/

View file

@ -23,8 +23,6 @@ import java.io.IOException;
import java.time.LocalDate;
import org.apache.commons.io.FileUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.core.StatoolInfosException;
import fr.devinsy.statoolinfos.metrics.PathCounters;
@ -37,8 +35,6 @@ import fr.devinsy.statoolinfos.util.FilesUtils;
*/
public class NextcloudDataAnalyzer
{
private static Logger logger = LoggerFactory.getLogger(NextcloudDataAnalyzer.class);
/**
* Instantiates a new http access log prober.
*/

View file

@ -21,9 +21,6 @@ package fr.devinsy.statoolinfos.metrics.nextcloud;
import java.io.IOException;
import java.util.regex.Pattern;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.core.StatoolInfosException;
import fr.devinsy.statoolinfos.metrics.PathCounters;
import fr.devinsy.statoolinfos.metrics.UserCounters;
@ -36,8 +33,6 @@ import fr.devinsy.statoolinfos.util.Files;
*/
public class NextcloudHttpLogAnalyzer
{
private static Logger logger = LoggerFactory.getLogger(NextcloudHttpLogAnalyzer.class);
public static final Pattern USE_PATTERN = Pattern.compile("GET /temp/\\w+\\.png.*");
public static final Pattern CREATE_PATTERN = Pattern.compile("POST / .*");

View file

@ -21,9 +21,6 @@ package fr.devinsy.statoolinfos.metrics.nextcloud;
import java.io.File;
import java.io.IOException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.core.StatoolInfosException;
import fr.devinsy.statoolinfos.metrics.PathCounters;
import fr.devinsy.statoolinfos.util.FilesUtils;
@ -33,8 +30,6 @@ import fr.devinsy.statoolinfos.util.FilesUtils;
*/
public class NextcloudProber
{
private static Logger logger = LoggerFactory.getLogger(NextcloudProber.class);
/**
* Instantiates a new nextcloud prober.
*/

View file

@ -22,9 +22,6 @@ import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Locale;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.metrics.TimeMarkUtils;
/**
@ -32,8 +29,6 @@ import fr.devinsy.statoolinfos.metrics.TimeMarkUtils;
*/
public class PrivatebinPatchLog
{
private static Logger logger = LoggerFactory.getLogger(PrivatebinPatchLog.class);
private LocalDateTime time;
private PrivatebinLogAction action;
private String id;

View file

@ -22,8 +22,6 @@ import java.io.File;
import java.io.IOException;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.core.StatoolInfosException;
import fr.devinsy.statoolinfos.metrics.PathCounter;
@ -39,8 +37,6 @@ import fr.devinsy.statoolinfos.util.FilesUtils;
*/
public class PrivatebinProber
{
private static Logger logger = LoggerFactory.getLogger(PrivatebinProber.class);
/**
* Instantiates a new privatebin prober.
*/

View file

@ -20,9 +20,6 @@ package fr.devinsy.statoolinfos.metrics.util;
import java.io.IOException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.metrics.PathCounters;
import fr.devinsy.statoolinfos.util.sql.SQLDatabase;
import fr.devinsy.strings.StringList;
@ -32,8 +29,6 @@ import fr.devinsy.strings.StringList;
*/
public class DatabaseProber
{
private static Logger logger = LoggerFactory.getLogger(DatabaseProber.class);
/**
* Instantiates a new database prober.
*/

View file

@ -22,8 +22,6 @@ import java.io.File;
import java.io.IOException;
import org.apache.commons.io.FileUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.metrics.PathCounters;
import fr.devinsy.statoolinfos.util.FilesUtils;
@ -34,8 +32,6 @@ import fr.devinsy.strings.StringList;
*/
public class DatafilesProber
{
private static Logger logger = LoggerFactory.getLogger(DatafilesProber.class);
/**
* Instantiates a new datafiles prober.
*/

View file

@ -23,8 +23,6 @@ import java.io.IOException;
import java.time.LocalDate;
import org.apache.commons.io.FileUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.core.StatoolInfosException;
import fr.devinsy.statoolinfos.metrics.PathCounters;
@ -36,8 +34,6 @@ import fr.devinsy.statoolinfos.metrics.TimeMark;
*/
public class XmppDataAnalyzer
{
private static Logger logger = LoggerFactory.getLogger(XmppDataAnalyzer.class);
/**
* Instantiates a new http access log prober.
*/

View file

@ -21,9 +21,6 @@ package fr.devinsy.statoolinfos.metrics.xmpp;
import java.io.IOException;
import java.util.regex.Pattern;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.core.StatoolInfosException;
import fr.devinsy.statoolinfos.metrics.PathCounters;
import fr.devinsy.statoolinfos.metrics.UserCounters;
@ -36,8 +33,6 @@ import fr.devinsy.statoolinfos.util.Files;
*/
public class XmppHttpLogAnalyzer
{
private static Logger logger = LoggerFactory.getLogger(XmppHttpLogAnalyzer.class);
public static final Pattern USE_PATTERN = Pattern.compile("GET /temp/\\w+\\.png.*");
public static final Pattern CREATE_PATTERN = Pattern.compile("POST / .*");

View file

@ -21,9 +21,6 @@ package fr.devinsy.statoolinfos.metrics.xmpp;
import java.io.File;
import java.io.IOException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.core.StatoolInfosException;
import fr.devinsy.statoolinfos.metrics.PathCounters;
import fr.devinsy.statoolinfos.util.FilesUtils;
@ -33,8 +30,6 @@ import fr.devinsy.statoolinfos.util.FilesUtils;
*/
public class XmppProber
{
private static Logger logger = LoggerFactory.getLogger(XmppProber.class);
/**
* Instantiates a new xmpp prober.
*/

View file

@ -20,9 +20,6 @@ package fr.devinsy.statoolinfos.properties;
import java.util.Hashtable;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.strings.StringList;
import fr.devinsy.strings.StringSet;
@ -31,8 +28,6 @@ import fr.devinsy.strings.StringSet;
*/
public class MetricDirectory
{
private static final Logger logger = LoggerFactory.getLogger(MetricDirectory.class);
private Hashtable<String, String> data;
/**

View file

@ -18,13 +18,12 @@
*/
package fr.devinsy.statoolinfos.properties;
import org.apache.commons.lang3.StringUtils;
import fr.devinsy.statoolinfos.core.Category;
/**
* The Class PathPropertySpecs.
*/
@SuppressWarnings("all")
public class MetricSpecs
{
public enum Type

View file

@ -243,7 +243,6 @@ public class MonthValues extends HashMap<YearMonth, Double>
{
YearMonth result;
YearMonth endTarget;
if (end == null)
{
result = YearMonth.now();

View file

@ -20,9 +20,6 @@ package fr.devinsy.statoolinfos.properties;
import java.util.Hashtable;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.strings.StringList;
import fr.devinsy.strings.StringSet;
@ -31,8 +28,6 @@ import fr.devinsy.strings.StringSet;
*/
public class PathPropertySet
{
private static final Logger logger = LoggerFactory.getLogger(PathPropertySet.class);
private Hashtable<String, String> data;
/**

View file

@ -32,8 +32,6 @@ import java.nio.charset.StandardCharsets;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.strings.StringList;
import fr.devinsy.strings.StringsUtils;
@ -43,8 +41,6 @@ import fr.devinsy.strings.StringsUtils;
*/
public class PathPropertyUtils
{
private static final Logger logger = LoggerFactory.getLogger(PathPropertyUtils.class);
/**
* Checks if is property line.
*

View file

@ -242,7 +242,6 @@ public class YearValues extends HashMap<Year, Double>
{
Year result;
Year endTarget;
if (end == null)
{
result = Year.now();

View file

@ -18,16 +18,11 @@
*/
package fr.devinsy.statoolinfos.stats.ip;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* The Class IpStat.
*/
public final class IpStat
{
private static Logger logger = LoggerFactory.getLogger(IpStat.class);
private String value;
private long count;

View file

@ -20,9 +20,6 @@ package fr.devinsy.statoolinfos.stats.ip;
import java.util.HashMap;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* The Class IpStatSet.
*/
@ -30,8 +27,6 @@ public final class IpStatSet extends HashMap<String, IpStat>
{
private static final long serialVersionUID = -8411746796941831991L;
private static Logger logger = LoggerFactory.getLogger(IpStatSet.class);
/**
* Instantiates a new ip stats.
*/

View file

@ -18,9 +18,6 @@
*/
package fr.devinsy.statoolinfos.stats.ip;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.metrics.httpaccess.HttpAccessLog;
/**
@ -28,8 +25,6 @@ import fr.devinsy.statoolinfos.metrics.httpaccess.HttpAccessLog;
*/
public final class IpStator
{
private static Logger logger = LoggerFactory.getLogger(IpStator.class);
private long logCount;
private IpStatSet ips;

View file

@ -21,16 +21,12 @@ package fr.devinsy.statoolinfos.stats.ip;
import java.util.ArrayList;
import java.util.Collections;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* The Class IpStats.
*/
public final class IpStats extends ArrayList<IpStat>
{
private static final long serialVersionUID = -2725108375443481335L;
private static Logger logger = LoggerFactory.getLogger(IpStats.class);
/**
* Instantiates a new ip user agent stats.

View file

@ -19,8 +19,6 @@
package fr.devinsy.statoolinfos.stats.properties;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.properties.PathProperty;
import fr.devinsy.statoolinfos.properties.PathPropertyList;
@ -30,8 +28,6 @@ import fr.devinsy.statoolinfos.properties.PathPropertyList;
*/
public class PropertyStats
{
private static Logger logger = LoggerFactory.getLogger(PropertyStats.class);
private int fileCount;
private PropertyStatSet stats;

View file

@ -20,16 +20,12 @@ package fr.devinsy.statoolinfos.stats.useragent;
import java.util.HashSet;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* The Class IpSet.
*/
public final class IpSet extends HashSet<String>
{
private static final long serialVersionUID = 8883849089810229045L;
private static Logger logger = LoggerFactory.getLogger(IpSet.class);
/**
* Instantiates a new ip set.

View file

@ -18,9 +18,6 @@
*/
package fr.devinsy.statoolinfos.stats.useragent;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.metrics.httpaccess.HttpAccessLog;
import fr.devinsy.statoolinfos.metrics.httpaccess.HttpStatusCategory;
import fr.devinsy.statoolinfos.stats.visitor.VisitorStat;
@ -31,8 +28,6 @@ import fr.devinsy.statoolinfos.stats.visitor.VisitorStatSet;
*/
public final class UserAgentStat
{
private static Logger logger = LoggerFactory.getLogger(UserAgentStat.class);
private String userAgent;
private long logCount;
private IpSet ips;

View file

@ -20,9 +20,6 @@ package fr.devinsy.statoolinfos.stats.useragent;
import java.util.HashMap;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.metrics.httpaccess.HttpAccessLog;
/**
@ -32,8 +29,6 @@ public final class UserAgentStatSet extends HashMap<String, UserAgentStat>
{
private static final long serialVersionUID = -7943808966632477322L;
private static Logger logger = LoggerFactory.getLogger(UserAgentStatSet.class);
/**
* Instantiates a new user agents.
*/

View file

@ -18,9 +18,6 @@
*/
package fr.devinsy.statoolinfos.stats.useragent;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.metrics.httpaccess.HttpAccessLog;
/**
@ -28,8 +25,6 @@ import fr.devinsy.statoolinfos.metrics.httpaccess.HttpAccessLog;
*/
public final class UserAgentStator
{
private static Logger logger = LoggerFactory.getLogger(UserAgentStator.class);
private long logCount;
private UserAgentStatSet userAgents;

View file

@ -21,16 +21,12 @@ package fr.devinsy.statoolinfos.stats.useragent;
import java.util.ArrayList;
import java.util.Collections;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* The Class UserAgentStats.
*/
public final class UserAgentStats extends ArrayList<UserAgentStat>
{
private static final long serialVersionUID = -6389473662022565639L;
private static Logger logger = LoggerFactory.getLogger(UserAgentStats.class);
/**
* Instantiates a new user agent stats.

View file

@ -18,9 +18,6 @@
*/
package fr.devinsy.statoolinfos.stats.visitor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.metrics.httpaccess.Visits;
/**
@ -28,8 +25,6 @@ import fr.devinsy.statoolinfos.metrics.httpaccess.Visits;
*/
public final class VisitorStat
{
private static Logger logger = LoggerFactory.getLogger(VisitorStat.class);
private String ip;
private String userAgent;
private long logCount;

View file

@ -20,9 +20,6 @@ package fr.devinsy.statoolinfos.stats.visitor;
import java.util.HashMap;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.stats.useragent.UserAgentStat;
/**
@ -31,7 +28,6 @@ import fr.devinsy.statoolinfos.stats.useragent.UserAgentStat;
public final class VisitorStatSet extends HashMap<String, VisitorStat>
{
private static final long serialVersionUID = -3123113539922160408L;
private static Logger logger = LoggerFactory.getLogger(VisitorStatSet.class);
/**
* Instantiates a new visitor stat set.

View file

@ -18,9 +18,6 @@
*/
package fr.devinsy.statoolinfos.stats.visitor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.metrics.httpaccess.HttpAccessLog;
import fr.devinsy.statoolinfos.metrics.httpaccess.HttpStatusCategory;
@ -29,8 +26,6 @@ import fr.devinsy.statoolinfos.metrics.httpaccess.HttpStatusCategory;
*/
public final class VisitorStator
{
private static Logger logger = LoggerFactory.getLogger(VisitorStator.class);
private long logCount;
private VisitorStatSet visitors;

View file

@ -21,16 +21,12 @@ package fr.devinsy.statoolinfos.stats.visitor;
import java.util.ArrayList;
import java.util.Collections;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* The Class VisitorStats.
*/
public final class VisitorStats extends ArrayList<VisitorStat>
{
private static final long serialVersionUID = 8866450468875949301L;
private static Logger logger = LoggerFactory.getLogger(VisitorStats.class);
/**
* Instantiates a new visitor stats.

View file

@ -18,9 +18,6 @@
*/
package fr.devinsy.statoolinfos.uptime;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.core.Service;
/**
@ -28,8 +25,6 @@ import fr.devinsy.statoolinfos.core.Service;
*/
public class ServiceUptime extends Uptime
{
private static Logger logger = LoggerFactory.getLogger(ServiceUptime.class);
private Service service;
/**

View file

@ -21,9 +21,6 @@ package fr.devinsy.statoolinfos.uptime;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.core.Service;
import fr.devinsy.statoolinfos.core.Services;
import fr.devinsy.strings.StringList;
@ -34,7 +31,6 @@ import fr.devinsy.strings.StringList;
public class ServiceUptimes extends ArrayList<ServiceUptime>
{
private static final long serialVersionUID = -4077776702697960767L;
private static Logger logger = LoggerFactory.getLogger(ServiceUptimes.class);
/**
* Instantiates a new service uptimes.

View file

@ -21,9 +21,6 @@ package fr.devinsy.statoolinfos.uptime;
import java.io.File;
import java.io.IOException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.io.CSVWriter;
import fr.devinsy.statoolinfos.io.ODSWriter;
import fr.devinsy.statoolinfos.io.SpreadsheetWriter;
@ -33,8 +30,6 @@ import fr.devinsy.statoolinfos.io.SpreadsheetWriter;
*/
public class ServiceUptimesFile
{
private static final Logger logger = LoggerFactory.getLogger(ServiceUptimesFile.class);
/**
* Save CSV.
*

View file

@ -22,9 +22,6 @@ import java.net.URL;
import java.util.HashMap;
import java.util.Iterator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* The Class URLSet.
*
@ -33,8 +30,6 @@ import org.slf4j.LoggerFactory;
*/
public class URLSet implements Iterable<URL>
{
private static Logger logger = LoggerFactory.getLogger(URLSet.class);
private HashMap<String, URL> map;
/**

View file

@ -21,16 +21,12 @@ package fr.devinsy.statoolinfos.uptime;
import java.net.URL;
import java.util.ArrayList;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* The Class URLs.
*/
public class URLs extends ArrayList<URL>
{
private static final long serialVersionUID = -2530910138006185902L;
private static Logger logger = LoggerFactory.getLogger(URLs.class);
/**
* Instantiates a new URLs.

View file

@ -21,9 +21,6 @@ package fr.devinsy.statoolinfos.uptime;
import java.net.URL;
import java.time.LocalDateTime;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.metrics.httpaccess.HttpStatusCategory;
/**
@ -31,8 +28,6 @@ import fr.devinsy.statoolinfos.metrics.httpaccess.HttpStatusCategory;
*/
public class Uptime
{
private static Logger logger = LoggerFactory.getLogger(Uptime.class);
private URL url;
private LocalDateTime datetime;
private int code;

View file

@ -24,9 +24,6 @@ import java.time.LocalDate;
import java.util.HashMap;
import java.util.Iterator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.core.Service;
import fr.devinsy.statoolinfos.core.Services;
@ -35,8 +32,6 @@ import fr.devinsy.statoolinfos.core.Services;
*/
public class UptimeJournal
{
private static Logger logger = LoggerFactory.getLogger(UptimeJournal.class);
private HashMap<String, Uptimes> map;
/**

View file

@ -33,16 +33,12 @@ import java.nio.charset.StandardCharsets;
import java.time.LocalDateTime;
import org.apache.commons.io.IOUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* The Class UptimeJournalFile.
*/
public class UptimeJournalFile
{
private static Logger logger = LoggerFactory.getLogger(UptimeJournalFile.class);
/**
* Instantiates a new uptime journal file.
*/

View file

@ -18,16 +18,11 @@
*/
package fr.devinsy.statoolinfos.uptime;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* The Class UptimeChecker.
*/
public class UptimeSet
{
private static Logger logger = LoggerFactory.getLogger(UptimeSet.class);
/**
* Instantiates a new stat agent.
*/

View file

@ -18,16 +18,11 @@
*/
package fr.devinsy.statoolinfos.uptime;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* The Class UptimeStat.
*/
public class UptimeStat
{
private static Logger logger = LoggerFactory.getLogger(UptimeStat.class);
private int count;
private int okCount;
private int warningCount;

View file

@ -27,9 +27,6 @@ import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.util.Chrono;
/**
@ -37,8 +34,6 @@ import fr.devinsy.statoolinfos.util.Chrono;
*/
public class UptimeSurveyor
{
private static Logger logger = LoggerFactory.getLogger(UptimeSurveyor.class);
/**
* Instantiates a new stat agent.
*/

View file

@ -23,9 +23,6 @@ import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.Iterator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.strings.StringList;
/**
@ -34,7 +31,6 @@ import fr.devinsy.strings.StringList;
public class Uptimes extends ArrayList<Uptime>
{
private static final long serialVersionUID = 7892787666725111836L;
private static Logger logger = LoggerFactory.getLogger(Uptimes.class);
/**
* Instantiates a new uptimes.

View file

@ -20,16 +20,11 @@ package fr.devinsy.statoolinfos.util;
import java.util.regex.Pattern;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* The Class IpUtils.
*/
public class IpUtils
{
private static Logger logger = LoggerFactory.getLogger(IpUtils.class);
public static final Pattern IPV4_PATTERN = Pattern.compile("\\d{0,3}\\.\\d{0,3}\\.\\d{0,3}\\.\\d{0,3}");
public static final Pattern IPV6_PATTERN = Pattern.compile("([0-9a-f]{1,4}:{1,2}){4,7}([0-9a-f]){1,4}", Pattern.CASE_INSENSITIVE);

View file

@ -27,16 +27,12 @@ import java.nio.charset.StandardCharsets;
import java.util.zip.GZIPInputStream;
import org.apache.commons.io.IOUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* The Class LineIterator.
*/
public class LineIterator
{
private static Logger logger = LoggerFactory.getLogger(LineIterator.class);
private File file;
private BufferedReader in;
private String nextLine;

View file

@ -29,8 +29,6 @@ import java.time.ZoneOffset;
import java.util.Date;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import fr.devinsy.statoolinfos.core.StatoolInfosException;
@ -39,8 +37,6 @@ import fr.devinsy.statoolinfos.core.StatoolInfosException;
*/
public final class SQLUtils
{
private static Logger logger = LoggerFactory.getLogger(SQLUtils.class);
/**
* Instantiates a new SQL utils.
*/

View file

@ -33,7 +33,8 @@ import fr.devinsy.statoolinfos.core.StatoolInfosException;
*/
public class PropertyCheckerTest
{
private static org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(PropertyCheckerTest.class);
// private static org.slf4j.Logger logger =
// org.slf4j.LoggerFactory.getLogger(PropertyCheckerTest.class);
/**
*

View file

@ -32,7 +32,8 @@ import org.junit.Test;
*/
public class StatoolInfosTest
{
private static org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(StatoolInfosTest.class);
// private static org.slf4j.Logger logger =
// org.slf4j.LoggerFactory.getLogger(StatoolInfosTest.class);
@Test
public void testFoo() throws Exception

View file

@ -37,8 +37,6 @@ import fr.devinsy.statoolinfos.util.FilesUtils;
*/
public class HttpAccessLogIteratorTest
{
private static org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(HttpAccessLogIteratorTest.class);
/**
* Test 01.
*
@ -60,7 +58,8 @@ public class HttpAccessLogIteratorTest
HttpAccessLogIterator iterator = (HttpAccessLogIterator) logs.iterator();
while (iterator.hasNext())
{
HttpAccessLog log = iterator.next();
// HttpAccessLog log =
iterator.next();
// System.out.println(log.toStringLog());
}

View file

@ -33,8 +33,6 @@ import fr.devinsy.statoolinfos.core.StatoolInfosException;
*/
public class HttpAccessLogParserTest
{
private static org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(HttpAccessLogParserTest.class);
/**
* Test 01.
*

View file

@ -38,8 +38,6 @@ import fr.devinsy.statoolinfos.util.FilesUtils;
*/
public class HttpAccessLogsAnalyzerTest
{
private static org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(HttpAccessLogsAnalyzerTest.class);
/**
* @throws Exception
*/

View file

@ -33,7 +33,8 @@ import fr.devinsy.statoolinfos.core.StatoolInfosException;
*/
public class UserAgentBotDetectorTest
{
private static org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(UserAgentBotDetectorTest.class);
// private static org.slf4j.Logger logger =
// org.slf4j.LoggerFactory.getLogger(UserAgentBotDetectorTest.class);
/**
* Test 01.

View file

@ -40,8 +40,6 @@ import fr.devinsy.statoolinfos.util.FilesUtils;
*/
public class HttpErrorLogIteratorTest
{
private static org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(HttpErrorLogIteratorTest.class);
/**
* Test 01.
*

View file

@ -42,8 +42,6 @@ import fr.devinsy.statoolinfos.util.FilesUtils;
*/
public class HttpErrorLogsAnalyzerTest
{
private static org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(HttpErrorLogsAnalyzerTest.class);
@Test
public void test01() throws Exception
{