public void log ( String message , final Callback callback ) { if ( message == null ) return ; loggly . log ( token , tags , message , 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 a log message asynchronously to Loggly