Skip to content

Commit a46164d

Browse files
committed
Added verbose-logs to LOG class;
Removed @deprecated methods; Updated version;
1 parent 575c65a commit a46164d

3 files changed

Lines changed: 52 additions & 367 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>io.github.Fi0x</groupId>
88
<artifactId>JavaLogger</artifactId>
9-
<version>1.3.3</version>
9+
<version>1.3.4</version>
1010
<name>Java Logger</name>
1111
<description>This is a Library for a custom Java Logger</description>
1212
<url>http://github.com/Fi0x/JavaLogger</url>

src/main/java/io/fi0x/javalogger/logging/LOG.java

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,4 +239,53 @@ public static void ERROR(String message)
239239
LogEntry l = new LogEntry(message, LogLevel.ERROR);
240240
Logger.log(l);
241241
}
242+
243+
/**
244+
* This method will creat a log message with the VERBOSE template.
245+
*
246+
* @param message The message that will be displayed in the log.
247+
* @param projectName The name of the project this log was created in.
248+
* @param verboseLevel The lowest verbose-level that is required to display this message.
249+
*/
250+
public static void VERBOSE(String message, String projectName, int verboseLevel)
251+
{
252+
LogEntry l = new LogEntry(message, LogLevel.VERBOSE)
253+
.PROJECTNAME(projectName);
254+
l.verboseLevel = verboseLevel;
255+
Logger.log(l);
256+
}
257+
/**
258+
* This method will creat a log message with the VERBOSE template.
259+
*
260+
* @param message The message that will be displayed in the log.
261+
* @param projectName The name of the project this log was created in.
262+
*/
263+
public static void VERBOSE(String message, String projectName)
264+
{
265+
LogEntry l = new LogEntry(message, LogLevel.VERBOSE)
266+
.PROJECTNAME(projectName);
267+
Logger.log(l);
268+
}
269+
/**
270+
* This method will creat a log message with the VERBOSE template.
271+
*
272+
* @param message The message that will be displayed in the log.
273+
* @param verboseLevel The lowest verbose-level that is required to display this message.
274+
*/
275+
public static void VERBOSE(String message, int verboseLevel)
276+
{
277+
LogEntry l = new LogEntry(message, LogLevel.VERBOSE);
278+
l.verboseLevel = verboseLevel;
279+
Logger.log(l);
280+
}
281+
/**
282+
* This method will creat a log message with the VERBOSE template.
283+
*
284+
* @param message The message that will be displayed in the log.
285+
*/
286+
public static void VERBOSE(String message)
287+
{
288+
LogEntry l = new LogEntry(message, LogLevel.VERBOSE);
289+
Logger.log(l);
290+
}
242291
}

0 commit comments

Comments
 (0)