/** * Log debug. * * @param message the message */ public void logDebug( String message ) { log.logDebug( message ); }
/** * Logs the specified string at the debug level. * * @param message * the message */ public void logDebug( String message ) { log.logDebug( message ); }
/** * Log debug. * * @param message the message * @param arguments the arguments */ public void logDebug( String message, Object... arguments ) { log.logDebug( message, arguments ); }
@Override public PrintStream append( char c ) { log.logDebug( "" + c ); return this; }
/** * Logs the specified string and arguments at the debug level. * * @param message * the message * @param arguments * the arguments */ public void logDebug( String message, Object... arguments ) { log.logDebug( message, arguments ); }
@Override public void println() { log.logDebug( Const.CR ); }
@Override public PrintStream append( CharSequence csq ) { log.logDebug( csq.toString() ); return this; }
@Override public void print( char[] s ) { log.logDebug( String.copyValueOf( s ) ); }
@Override public void println( float f ) { log.logDebug( Float.toString( f ) + Const.CR ); }
@Override public PrintStream append( CharSequence csq, int start, int end ) { log.logDebug( csq.subSequence( start, end ).toString() ); return this; } }
/** * Log debug. * * @param message the message */ public void logDebug( String message ) { getLog().logDebug( message ); }
/** * Log debug. * * @param message the message * @param arguments the arguments */ public void logDebug( String message, Object... arguments ) { getLog().logDebug( message, arguments ); }
/** * Could in theory be used to figure out the format of the date/time except that I'd need time on the server to see if * this actually works that way. For now, we ignore the locale and try to figure out the date format ourselves. */ @Override public void setLocale( Locale arg0 ) { // if ( log.isDebug() ) { log.logDebug( BaseMessages.getString( PKG, "MVSFileParser.DEBUG.Ignore.Locale" ) ); } }
public List<RepositoryElementMetaInterface> getTransformationObjects( ObjectId id_directory, boolean includeDeleted ) throws KettleException { List<RepositoryElementMetaInterface> objects = getRepositoryObjects( quoteTable( KettleDatabaseRepository.TABLE_R_TRANSFORMATION ), RepositoryObjectType.TRANSFORMATION, id_directory ); if ( ( log != null ) && log.isDebug() && objects.size() > 0 ) { log.logDebug( objects.get( 0 ).getRepositoryDirectory().getPath() ); } return objects; }
public static String getNativeDataTypeSimpleName( ValueMetaInterface v ) { try { return v.getType() != ValueMetaInterface.TYPE_BINARY ? v.getNativeDataTypeClass().getSimpleName() : "Binary"; } catch ( KettleValueException e ) { LogChannelInterface log = new LogChannel( v ); log.logDebug( BaseMessages.getString( PKG, "FieldHelper.Log.UnknownNativeDataTypeSimpleName" ) ); return "Object"; } } }
private void editHop( TransHopMeta transHopMeta ) { String name = transHopMeta.toString(); if ( log.isDebug() ) { log.logDebug( BaseMessages.getString( PKG, "TransGraph.Logging.EditingHop" ) + name ); } spoon.editHop( transMeta, transHopMeta ); }
protected void logDebug( final String messageKey ) { if ( getLog().isDebug() ) { getLog().logDebug( BaseMessages.getString( getPkgClazz(), messageKey ) ); } }
protected void logDebug( final String messageKey, String... messageTokens ) { if ( getLog().isDebug() ) { getLog().logDebug( BaseMessages.getString( getPkgClazz(), messageKey, messageTokens ) ); } }
@Test public void testService() throws Exception { when( req.getContextPath() ).thenReturn( "/Path" ); when( baseCartePlugin.getContextPath() ).thenReturn( "/Path" ); when( log.isDebug() ).thenReturn( true ); baseCartePlugin.service( req, resp ); verify( log ).logDebug( baseCartePlugin.getService() ); verify( baseCartePlugin ).handleRequest( carteReqCaptor.capture() ); CarteRequestHandler.CarteRequest carteRequest = carteReqCaptor.getValue(); testCarteRequest( carteRequest ); testCarteResponse( carteRequest.respond( 200 ) ); }