/** * Logs entry to a method with location information. * * @param fqcn The fully qualified class name of the <b>caller</b>. * @param format The format String for the parameters. * @param paramSuppliers The parameters to the method. */ @Deprecated protected EntryMessage enter(final String fqcn, final String format, final MessageSupplier... paramSuppliers) { EntryMessage entryMsg = null; if (isEnabled(Level.TRACE, ENTRY_MARKER, (Object) null, null)) { logMessageSafely(fqcn, Level.TRACE, ENTRY_MARKER, entryMsg = entryMsg(format, paramSuppliers), null); } return entryMsg; }
/** * Logs entry to a method with location information. * * @param fqcn The fully qualified class name of the <b>caller</b>. * @param params The parameters to the method. */ protected void entry(final String fqcn, final Object... params) { if (isEnabled(Level.TRACE, ENTRY_MARKER, (Object) null, null)) { if (params == null) { logMessageSafely(fqcn, Level.TRACE, ENTRY_MARKER, entryMsg(null, (Supplier<?>[]) null), null); } else { logMessageSafely(fqcn, Level.TRACE, ENTRY_MARKER, entryMsg(null, params), null); } } }
protected EntryMessage entryMsg(final String format, final Supplier<?>... paramSuppliers) { final int count = paramSuppliers == null ? 0 : paramSuppliers.length; final Object[] params = new Object[count]; for (int i = 0; i < count; i++) { params[i] = paramSuppliers[i].get(); if (params[i] instanceof Message) { params[i] = ((Message) params[i]).getFormattedMessage(); } } return entryMsg(format, params); }
protected EntryMessage entryMsg(final String format, final MessageSupplier... paramSuppliers) { final int count = paramSuppliers == null ? 0 : paramSuppliers.length; final Object[] params = new Object[count]; for (int i = 0; i < count; i++) { params[i] = paramSuppliers[i].get(); params[i] = params[i] != null ? ((Message) params[i]).getFormattedMessage() : null; } return entryMsg(format, params); }
/** * Logs entry to a method with location information. * * @param fqcn The fully qualified class name of the <b>caller</b>. * @param format Format String for the parameters. * @param paramSuppliers The Suppliers of the parameters. */ protected EntryMessage enter(final String fqcn, final String format, final Supplier<?>... paramSuppliers) { EntryMessage entryMsg = null; if (isEnabled(Level.TRACE, ENTRY_MARKER, (Object) null, null)) { logMessageSafely(fqcn, Level.TRACE, ENTRY_MARKER, entryMsg = entryMsg(format, paramSuppliers), null); } return entryMsg; }
/** * Logs entry to a method with location information. * * @param fqcn The fully qualified class name of the <b>caller</b>. * @param format The format String for the parameters. * @param params The parameters to the method. */ protected EntryMessage enter(final String fqcn, final String format, final Object... params) { EntryMessage entryMsg = null; if (isEnabled(Level.TRACE, ENTRY_MARKER, (Object) null, null)) { logMessageSafely(fqcn, Level.TRACE, ENTRY_MARKER, entryMsg = entryMsg(format, params), null); } return entryMsg; }
/** * Logs entry to a method with location information. * * @param fqcn The fully qualified class name of the <b>caller</b>. * @param params The parameters to the method. */ protected void entry(final String fqcn, final Object... params) { if (isEnabled(Level.TRACE, ENTRY_MARKER, (Object) null, null)) { if (params == null) { logMessageSafely(fqcn, Level.TRACE, ENTRY_MARKER, entryMsg(null, (Supplier<?>[]) null), null); } else { logMessageSafely(fqcn, Level.TRACE, ENTRY_MARKER, entryMsg(null, params), null); } } }
protected EntryMessage entryMsg(final String format, final Supplier<?>... paramSuppliers) { final int count = paramSuppliers == null ? 0 : paramSuppliers.length; final Object[] params = new Object[count]; for (int i = 0; i < count; i++) { params[i] = paramSuppliers[i].get(); if (params[i] instanceof Message) { params[i] = ((Message) params[i]).getFormattedMessage(); } } return entryMsg(format, params); }
/** * Logs entry to a method with location information. * * @param fqcn The fully qualified class name of the <b>caller</b>. * @param format The format String for the parameters. * @param paramSuppliers The parameters to the method. */ @Deprecated protected EntryMessage enter(final String fqcn, final String format, final MessageSupplier... paramSuppliers) { EntryMessage entryMsg = null; if (isEnabled(Level.TRACE, ENTRY_MARKER, (Object) null, null)) { logMessageSafely(fqcn, Level.TRACE, ENTRY_MARKER, entryMsg = entryMsg(format, paramSuppliers), null); } return entryMsg; }
protected EntryMessage entryMsg(final String format, final MessageSupplier... paramSuppliers) { final int count = paramSuppliers == null ? 0 : paramSuppliers.length; final Object[] params = new Object[count]; for (int i = 0; i < count; i++) { params[i] = paramSuppliers[i].get(); params[i] = params[i] != null ? ((Message) params[i]).getFormattedMessage() : null; } return entryMsg(format, params); }
/** * Logs entry to a method with location information. * * @param fqcn The fully qualified class name of the <b>caller</b>. * @param format The format String for the parameters. * @param params The parameters to the method. */ protected EntryMessage enter(final String fqcn, final String format, final Object... params) { EntryMessage entryMsg = null; if (isEnabled(Level.TRACE, ENTRY_MARKER, (Object) null, null)) { logMessageSafely(fqcn, Level.TRACE, ENTRY_MARKER, entryMsg = entryMsg(format, params), null); } return entryMsg; }
/** * Logs entry to a method with location information. * * @param fqcn The fully qualified class name of the <b>caller</b>. * @param format Format String for the parameters. * @param paramSuppliers The Suppliers of the parameters. */ protected EntryMessage enter(final String fqcn, final String format, final Supplier<?>... paramSuppliers) { EntryMessage entryMsg = null; if (isEnabled(Level.TRACE, ENTRY_MARKER, (Object) null, null)) { logMessageSafely(fqcn, Level.TRACE, ENTRY_MARKER, entryMsg = entryMsg(format, paramSuppliers), null); } return entryMsg; }