java.lang.Object
net.i2p.util.Log.LogScope
Enclosing class:
Log

private static final class Log.LogScopeextends Object
One named logging scope and its settings.
  • Field Details

    • _scopeCache

      private final String _scopeCache
      The scope name this cache was built for.
  • Constructor Details

    • LogScope

      public LogScope(String name, Class<?> cls)
      Create the scope, caching the computed string.
      Parameters:
      name - the logger name, or null if the class alone identifies it
      cls - the class the logger was created for, or null
  • Method Details

    • hashCode

      public int hashCode()
      Based on the scope cache string.
      Overrides:
      hashCode in class Object
      Returns:
      the hash code of the cached scope string
    • equals

      public boolean equals(Object obj)
      Compare scope cache strings.
      Overrides:
      equals in class Object