Class StringLogger

All Implemented Interfaces:
JsonLogger, Logger

public class StringLogger extends ConsoleLogger
A simple logger without any metadata, replacement for System.out.
  • Constructor Details

    • StringLogger

      public StringLogger(Class aClass)
      Parameters:
      aClass - the class that uses this logger.
    • StringLogger

      public StringLogger(CoreContext context, Class aClass)
      Parameters:
      context - the context the logger is used on.
      aClass - the class that uses this logger.
  • Method Details

    • parseJsonLog

      protected String parseJsonLog(io.vertx.core.json.JsonObject data, String event)
      Overrides:
      parseJsonLog in class ConsoleLogger
    • log

      Logger log(String line)
      Parameters:
      line - the text line to be logged.
      Returns:
      fluent
    • log

      Logger log(String line, LogLevel level)
      Parameters:
      line - the text line to be logged.
      level - the logging level to log with.
      Returns:
      fluent