Skip to content

Commit

Permalink
Removed forcing of trace logger.
Browse files Browse the repository at this point in the history
  • Loading branch information
aboulsaadat committed May 19, 2024
1 parent 6c70227 commit 159ff4f
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
package com.workup.contracts.logger;

import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.core.config.Configurator;

public class ContractsLogger {
private static final Logger logger = LogManager.getLogger(ContractsLogger.class);

public static void print(String logMessage, LoggingLevel level) {
Configurator.setRootLevel(Level.TRACE);

switch (level) {
case TRACE -> logger.trace("Trace level log message: " + logMessage);
case DEBUG -> logger.debug("Debug level log message: " + logMessage);
Expand Down

0 comments on commit 159ff4f

Please sign in to comment.