logback-android/src/main/java/ch/qos/logback/classic/android/SQLiteAppender.java
private String asStringTruncatedTo254(Object o) {
    String s = null;
    if (o != null) {
      s = o.toString();
    }
    if (s != null && s.length() > 254) {
      s = s.substring(0, 254);
    }
    return s == null ? "" : s;
  }
private String asStringTruncatedTo254(Object o) {
    String s = null;
    if (o != null) {
      s = o.toString();
    }
    if (s != null && s.length() > 254) {
      s = s.substring(0, 254);
    }
    return s == null ? "" : s;
  }
private String asStringTruncatedTo254 ( Object o ) { String s = null ; if ( o != null ) { s = o . toString ( ) ; } if ( s != null && s . length ( ) > 254 ) { s = s . substring ( 0 , 254 ) ; } return s == null ? "" : s ; }
Gets the first 254 characters of an object's string representation. This is
used to truncate a logging event's argument binding if necessary.

@param o the object
@return up to 254 characters of the object's string representation; or empty
string if the object string is itself null
Gets the first 254 characters of an object s string representation . This is used to truncate a logging event s argument binding if necessary .