code: private void writeObject(final java.io.ObjectOutputStream out)
              throws IOException {
          out.writeBoolean(level instanceof UtilLoggingLevel);
          out.writeInt(level.toInt());
      }
docs: Serialize the state of the object.
  
  @param out object output stream.
  
  @throws IOException if error in writing stream during serialization.