Skip to content

Commit

Permalink
Added verbose-logs to LOG class;
Browse files Browse the repository at this point in the history
Removed @deprecated methods;
Updated version;
  • Loading branch information
Fi0x committed Jan 4, 2024
1 parent 575c65a commit a46164d
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 367 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>io.github.Fi0x</groupId>
<artifactId>JavaLogger</artifactId>
<version>1.3.3</version>
<version>1.3.4</version>
<name>Java Logger</name>
<description>This is a Library for a custom Java Logger</description>
<url>http://github.com/Fi0x/JavaLogger</url>
Expand Down
49 changes: 49 additions & 0 deletions src/main/java/io/fi0x/javalogger/logging/LOG.java
Original file line number Diff line number Diff line change
Expand Up @@ -239,4 +239,53 @@ public static void ERROR(String message)
LogEntry l = new LogEntry(message, LogLevel.ERROR);
Logger.log(l);
}

/**
* This method will creat a log message with the VERBOSE template.
*
* @param message The message that will be displayed in the log.
* @param projectName The name of the project this log was created in.
* @param verboseLevel The lowest verbose-level that is required to display this message.
*/
public static void VERBOSE(String message, String projectName, int verboseLevel)
{
LogEntry l = new LogEntry(message, LogLevel.VERBOSE)
.PROJECTNAME(projectName);
l.verboseLevel = verboseLevel;
Logger.log(l);
}
/**
* This method will creat a log message with the VERBOSE template.
*
* @param message The message that will be displayed in the log.
* @param projectName The name of the project this log was created in.
*/
public static void VERBOSE(String message, String projectName)
{
LogEntry l = new LogEntry(message, LogLevel.VERBOSE)
.PROJECTNAME(projectName);
Logger.log(l);
}
/**
* This method will creat a log message with the VERBOSE template.
*
* @param message The message that will be displayed in the log.
* @param verboseLevel The lowest verbose-level that is required to display this message.
*/
public static void VERBOSE(String message, int verboseLevel)
{
LogEntry l = new LogEntry(message, LogLevel.VERBOSE);
l.verboseLevel = verboseLevel;
Logger.log(l);
}
/**
* This method will creat a log message with the VERBOSE template.
*
* @param message The message that will be displayed in the log.
*/
public static void VERBOSE(String message)
{
LogEntry l = new LogEntry(message, LogLevel.VERBOSE);
Logger.log(l);
}
}
Loading

0 comments on commit a46164d

Please sign in to comment.