Skip to content

Commit

Permalink
improved
Browse files Browse the repository at this point in the history
  • Loading branch information
NightDev701 committed Oct 5, 2023
1 parent 8ad84d8 commit b1c2df9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 1 addition & 3 deletions src/main/java/pl/nightdev701/logger/AbstractLogger.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,9 @@
*/

import java.util.logging.Level;

public abstract class AbstractLogger {

public abstract void log(Level level, String msg);
public abstract void log(Object level, String msg);

}

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
public class DefaultLogger extends AbstractLogger {

@Override
public void log(Level level, String msg) {
public void log(Object level, String msg) {

File logFolder = new File("logs");

Expand All @@ -30,7 +30,7 @@ public void log(Level level, String msg) {
}

Logger logger = Logger.getLogger("openapi");
logger.log(level, msg);
logger.log((Level) level, msg);

String result = OpenAPI.getClockTime() + " | " + level + " | " + msg;

Expand Down

0 comments on commit b1c2df9

Please sign in to comment.