public void logBulk ( Collection < String > messages , final Callback callback ) { if ( messages == null ) return ; String parcel = joinStrings ( messages ) ; if ( parcel . isEmpty ( ) ) return ; loggly . logBulk ( token , tags , parcel , new retrofit2 . Callback < LogglyResponse > ( ) { @ Override public void onResponse ( Call < LogglyResponse > call , Response < LogglyResponse > response ) { callback . success ( ) ; } @ Override public void onFailure ( Call < LogglyResponse > call , Throwable throwable ) { callback . failure ( throwable . getMessage ( ) ) ; } } ) ; }
Posts several log messages in bulk to Loggly asynchronously