Module hw06

Interface ILogEntry

All Superinterfaces:
Serializable

public interface ILogEntry extends Serializable
Represents a complete log entry with a log level, code location and a message.
Author:
swong
  • Method Summary

    Modifier and Type
    Method
    Description
    Get this log entry's log level
    Get this log entry's code location
    Get this log entry's message
    static ILogEntry
    make​(LogLevel level, String loc, String msg)
    Instantiate a new ILogEntry instance with the given non-null characteristics.
  • Method Details

    • getLevel

      LogLevel getLevel()
      Get this log entry's log level
      Returns:
      The log level
    • getLoc

      String getLoc()
      Get this log entry's code location
      Returns:
      The code location of the logging event as a String
    • getMsg

      String getMsg()
      Get this log entry's message
      Returns:
      The message
    • make

      static ILogEntry make(LogLevel level, String loc, String msg)
      Instantiate a new ILogEntry instance with the given non-null characteristics.
      Parameters:
      level - The log level of the entry
      loc - The code location of the entry as a String
      msg - The message of the entry
      Returns:
      A new ILogEntry instance