private long subAppend ( ILoggingEvent event , SQLiteStatement insertStatement ) throws SQLException { bindLoggingEvent ( insertStatement , event ) ; bindLoggingEventArguments ( insertStatement , event . getArgumentArray ( ) ) ; // This is expensive... should we do it every time? bindCallerData ( insertStatement , event . getCallerData ( ) ) ; long insertId = - 1 ; try { insertId = insertStatement . executeInsert ( ) ; } catch ( SQLiteException e ) { addWarn ( "Failed to insert loggingEvent" , e ) ; } return insertId ; }
Inserts the main details of a log event into the database