This repository has been archived by the owner on Sep 10, 2021. It is now read-only.
forked from sladkoff/minecraft-prometheus-exporter
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* updated Grafana Template * renamed some metrics * mc_loaded_chunks_total > mc_loaded_chunks * mc_players_online_total > mc_players_online * mc_entities_total > mc_entities * mc_tile_entities_total > mc_tile_entities * got rid of all the Jetty logspam
- Loading branch information
Showing
6 changed files
with
182 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
src/main/java/de/sldk/mc/prometheusexporter/JettyNullLogger.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package de.sldk.mc.prometheusexporter; | ||
|
||
import org.eclipse.jetty.util.log.Logger; | ||
|
||
public class JettyNullLogger implements Logger { | ||
public String getName() { | ||
return "Jetty"; | ||
} | ||
|
||
public void warn(String s, Object... objects) { | ||
} | ||
|
||
public void warn(Throwable throwable) { | ||
} | ||
|
||
public void warn(String s, Throwable throwable) { | ||
} | ||
|
||
public void info(String s, Object... objects) { | ||
} | ||
|
||
public void info(Throwable throwable) { | ||
} | ||
|
||
public void info(String s, Throwable throwable) { | ||
} | ||
|
||
public boolean isDebugEnabled() { | ||
return false; | ||
} | ||
|
||
public void setDebugEnabled(boolean b) { | ||
} | ||
|
||
public void debug(String s, Object... objects) { | ||
} | ||
|
||
public void debug(String msg, long value) { | ||
|
||
} | ||
|
||
public void debug(Throwable throwable) { | ||
} | ||
|
||
public void debug(String s, Throwable throwable) { | ||
} | ||
|
||
public Logger getLogger(String s) { | ||
return this; | ||
} | ||
|
||
public void ignore(Throwable throwable) { | ||
} | ||
} |
Oops, something went wrong.