Interface LogsGson.Able

All Known Implementing Classes:
ColorId
Enclosing class:
LogsGson

public static interface LogsGson.Able
A conversion to a preferred logging representation.

When an implementor is logged, the result of this method will be JSON stringified in place of the implementor.

Use this interface when the default Gson serialization for a class is bad and the class should always be logged another way. Primitive wrappers and entity type are ideal candidates.

  • Method Summary

    Modifier and Type
    Method
    Description
     
  • Method Details

    • toLogsGson

      Object toLogsGson()