code: protected void fillStatement(PreparedStatement stmt, LoggingEvent event) throws SQLException {
  		Object value;
  		stmt.setString(1, event.getLevel().toString());					// level
  		stmt.setTimestamp(2, new Timestamp(event.getTimeStamp()));		// timestamp
  		value = event.getMessage();										// message
  		stmt.setString(3, value == null? null : value.toString());
  		stmt.setString(4, event.getThreadName());						// thread
  		stmt.setString(5, event.getLoggerName());						// logger
  		stmt.setString(6, event.getLocationInformation().fullInfo);		// location
  		if(null == event.getThrowableStrRep()) {						// exception
  			stmt.setString(7, null);
  		} else {
  			value = new StringBuffer();
  			for(String string : event.getThrowableStrRep()) {
  				((StringBuffer)value).append(string).append("\n");
  			}
  			stmt.setString(7, value.toString());
  		}
  	}
docs: CREATE TABLE `logs` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `level` varchar(7) NOT NULL,
  `logTime` datetime NOT NULL,
  `message` varchar(511) DEFAULT NULL,
  `thread` varchar(63) DEFAULT NULL,
  `logger` varchar(127) DEFAULT NULL,
  `location` varchar(255) DEFAULT NULL,
  `exception` longtext,
  PRIMARY KEY (`id`)
  ) ENGINE=InnoDB CHARSET=utf8;
  
  INSERT INTO logs (level, logTime, message, thread, logger, location, exception)
  VALUES(?, ?, ?,, ?, ?, ?, ?);
  
  @param stmt
  @param event
  
  @throws SQLException