id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
104,200
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginRegistry.java
PluginRegistry.getPlugins
public List getPlugins() { synchronized (pluginMap) { List pluginList = new ArrayList(pluginMap.size()); Iterator iter = pluginMap.values().iterator(); while (iter.hasNext()) { pluginList.add(iter.next()); } return pluginList; ...
java
public List getPlugins() { synchronized (pluginMap) { List pluginList = new ArrayList(pluginMap.size()); Iterator iter = pluginMap.values().iterator(); while (iter.hasNext()) { pluginList.add(iter.next()); } return pluginList; ...
[ "public", "List", "getPlugins", "(", ")", "{", "synchronized", "(", "pluginMap", ")", "{", "List", "pluginList", "=", "new", "ArrayList", "(", "pluginMap", ".", "size", "(", ")", ")", ";", "Iterator", "iter", "=", "pluginMap", ".", "values", "(", ")", ...
Returns all the plugins for a given repository. @return List list of plugins from the repository.
[ "Returns", "all", "the", "plugins", "for", "a", "given", "repository", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginRegistry.java#L161-L171
104,201
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginRegistry.java
PluginRegistry.getPlugins
public List getPlugins(final Class pluginClass) { synchronized (pluginMap) { List pluginList = new ArrayList(pluginMap.size()); Iterator iter = pluginMap.values().iterator(); while (iter.hasNext()) { Object plugin = iter.next(); if (pluginCla...
java
public List getPlugins(final Class pluginClass) { synchronized (pluginMap) { List pluginList = new ArrayList(pluginMap.size()); Iterator iter = pluginMap.values().iterator(); while (iter.hasNext()) { Object plugin = iter.next(); if (pluginCla...
[ "public", "List", "getPlugins", "(", "final", "Class", "pluginClass", ")", "{", "synchronized", "(", "pluginMap", ")", "{", "List", "pluginList", "=", "new", "ArrayList", "(", "pluginMap", ".", "size", "(", ")", ")", ";", "Iterator", "iter", "=", "pluginMa...
Returns all the plugins for a given repository that are instances of a certain class. @param pluginClass the class the plugin must implement to be selected. @return List list of plugins from the repository.
[ "Returns", "all", "the", "plugins", "for", "a", "given", "repository", "that", "are", "instances", "of", "a", "certain", "class", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginRegistry.java#L181-L195
104,202
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginRegistry.java
PluginRegistry.stopPlugin
public Plugin stopPlugin(final String pluginName) { synchronized (pluginMap) { Plugin plugin = (Plugin) pluginMap.get(pluginName); if (plugin == null) { return null; } // shutdown the plugin plugin.shutdown(); // remove i...
java
public Plugin stopPlugin(final String pluginName) { synchronized (pluginMap) { Plugin plugin = (Plugin) pluginMap.get(pluginName); if (plugin == null) { return null; } // shutdown the plugin plugin.shutdown(); // remove i...
[ "public", "Plugin", "stopPlugin", "(", "final", "String", "pluginName", ")", "{", "synchronized", "(", "pluginMap", ")", "{", "Plugin", "plugin", "=", "(", "Plugin", ")", "pluginMap", ".", "get", "(", "pluginName", ")", ";", "if", "(", "plugin", "==", "n...
Stops a plugin by plugin name and repository. @param pluginName the name of the plugin to stop. @return Plugin the plugin, if stopped, or null if the the plugin was not found in the registry.
[ "Stops", "a", "plugin", "by", "plugin", "name", "and", "repository", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginRegistry.java#L205-L223
104,203
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginRegistry.java
PluginRegistry.stopAllPlugins
public void stopAllPlugins() { synchronized (pluginMap) { // remove the listener for this repository loggerRepository.removeLoggerRepositoryEventListener(listener); Iterator iter = pluginMap.values().iterator(); while (iter.hasNext()) { Plugin pl...
java
public void stopAllPlugins() { synchronized (pluginMap) { // remove the listener for this repository loggerRepository.removeLoggerRepositoryEventListener(listener); Iterator iter = pluginMap.values().iterator(); while (iter.hasNext()) { Plugin pl...
[ "public", "void", "stopAllPlugins", "(", ")", "{", "synchronized", "(", "pluginMap", ")", "{", "// remove the listener for this repository", "loggerRepository", ".", "removeLoggerRepositoryEventListener", "(", "listener", ")", ";", "Iterator", "iter", "=", "pluginMap", ...
Stops all plugins in the given logger repository.
[ "Stops", "all", "plugins", "in", "the", "given", "logger", "repository", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginRegistry.java#L228-L241
104,204
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/helpers/AppenderAttachableImpl.java
AppenderAttachableImpl.removeAppender
public void removeAppender(String name) { if(name == null) return; for (Iterator<Appender> it = appenderList.iterator(); it.hasNext();) { if (name.equals(it.next().getName())) { it.remove(); break; } } }
java
public void removeAppender(String name) { if(name == null) return; for (Iterator<Appender> it = appenderList.iterator(); it.hasNext();) { if (name.equals(it.next().getName())) { it.remove(); break; } } }
[ "public", "void", "removeAppender", "(", "String", "name", ")", "{", "if", "(", "name", "==", "null", ")", "return", ";", "for", "(", "Iterator", "<", "Appender", ">", "it", "=", "appenderList", ".", "iterator", "(", ")", ";", "it", ".", "hasNext", "...
Remove the appender with the name passed as parameter form the list of appenders.
[ "Remove", "the", "appender", "with", "the", "name", "passed", "as", "parameter", "form", "the", "list", "of", "appenders", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/helpers/AppenderAttachableImpl.java#L165-L174
104,205
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java
AbstractLogger.catching
protected void catching(final String fqcn, final Level level, final Throwable t) { if (isEnabled(level, CATCHING_MARKER, (Object) null, null)) { logMessageSafely(fqcn, level, CATCHING_MARKER, catchingMsg(t), t); } }
java
protected void catching(final String fqcn, final Level level, final Throwable t) { if (isEnabled(level, CATCHING_MARKER, (Object) null, null)) { logMessageSafely(fqcn, level, CATCHING_MARKER, catchingMsg(t), t); } }
[ "protected", "void", "catching", "(", "final", "String", "fqcn", ",", "final", "Level", "level", ",", "final", "Throwable", "t", ")", "{", "if", "(", "isEnabled", "(", "level", ",", "CATCHING_MARKER", ",", "(", "Object", ")", "null", ",", "null", ")", ...
Logs a Throwable that has been caught with location information. @param fqcn The fully qualified class name of the <b>caller</b>. @param level The logging level. @param t The Throwable.
[ "Logs", "a", "Throwable", "that", "has", "been", "caught", "with", "location", "information", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java#L176-L180
104,206
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java
AbstractLogger.exit
protected <R> R exit(final String fqcn, final R result) { logIfEnabled(fqcn, Level.TRACE, EXIT_MARKER, exitMsg(null, result), null); return result; }
java
protected <R> R exit(final String fqcn, final R result) { logIfEnabled(fqcn, Level.TRACE, EXIT_MARKER, exitMsg(null, result), null); return result; }
[ "protected", "<", "R", ">", "R", "exit", "(", "final", "String", "fqcn", ",", "final", "R", "result", ")", "{", "logIfEnabled", "(", "fqcn", ",", "Level", ".", "TRACE", ",", "EXIT_MARKER", ",", "exitMsg", "(", "null", ",", "result", ")", ",", "null",...
Logs exiting from a method with the result and location information. @param fqcn The fully qualified class name of the <b>caller</b>. @param <R> The type of the parameter and object being returned. @param result The result being returned from the method call. @return the return value passed to this method.
[ "Logs", "exiting", "from", "a", "method", "with", "the", "result", "and", "location", "information", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java#L927-L930
104,207
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java
AbstractLogger.throwing
protected <T extends Throwable> T throwing(final String fqcn, final Level level, final T t) { if (isEnabled(level, THROWING_MARKER, (Object) null, null)) { logMessageSafely(fqcn, level, THROWING_MARKER, throwingMsg(t), t); } return t; }
java
protected <T extends Throwable> T throwing(final String fqcn, final Level level, final T t) { if (isEnabled(level, THROWING_MARKER, (Object) null, null)) { logMessageSafely(fqcn, level, THROWING_MARKER, throwingMsg(t), t); } return t; }
[ "protected", "<", "T", "extends", "Throwable", ">", "T", "throwing", "(", "final", "String", "fqcn", ",", "final", "Level", "level", ",", "final", "T", "t", ")", "{", "if", "(", "isEnabled", "(", "level", ",", "THROWING_MARKER", ",", "(", "Object", ")"...
Logs a Throwable to be thrown. @param <T> the type of the Throwable. @param fqcn the fully qualified class name of this Logger implementation. @param level The logging Level. @param t The Throwable. @return the Throwable.
[ "Logs", "a", "Throwable", "to", "be", "thrown", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/spi/AbstractLogger.java#L2160-L2165
104,208
ops4j/org.ops4j.pax.logging
pax-logging-log4j2/src/main/java/org/apache/logging/log4j/core/impl/ReusableLogEventFactory.java
ReusableLogEventFactory.createEvent
@Override public LogEvent createEvent(final String loggerName, final Marker marker, final String fqcn, final Level level, final Message message, final List<Property> properties, final Throwable t) { WeakReference<MutableLogEvent> refResult = mu...
java
@Override public LogEvent createEvent(final String loggerName, final Marker marker, final String fqcn, final Level level, final Message message, final List<Property> properties, final Throwable t) { WeakReference<MutableLogEvent> refResult = mu...
[ "@", "Override", "public", "LogEvent", "createEvent", "(", "final", "String", "loggerName", ",", "final", "Marker", "marker", ",", "final", "String", "fqcn", ",", "final", "Level", "level", ",", "final", "Message", "message", ",", "final", "List", "<", "Prop...
Creates a log event. @param loggerName The name of the Logger. @param marker An optional Marker. @param fqcn The fully qualified class name of the caller. @param level The event Level. @param message The Message. @param properties Properties to be added to the log event. @param t An optional Throwable. @return The Log...
[ "Creates", "a", "log", "event", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-log4j2/src/main/java/org/apache/logging/log4j/core/impl/ReusableLogEventFactory.java#L58-L98
104,209
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/rolling/helper/CompositeAction.java
CompositeAction.execute
public boolean execute() throws IOException { if (stopOnError) { for (int i = 0; i < actions.length; i++) { if (!actions[i].execute()) { return false; } } return true; } else { boolean status = true; IOException exception = null; for (int i = 0; i ...
java
public boolean execute() throws IOException { if (stopOnError) { for (int i = 0; i < actions.length; i++) { if (!actions[i].execute()) { return false; } } return true; } else { boolean status = true; IOException exception = null; for (int i = 0; i ...
[ "public", "boolean", "execute", "(", ")", "throws", "IOException", "{", "if", "(", "stopOnError", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "actions", ".", "length", ";", "i", "++", ")", "{", "if", "(", "!", "actions", "[", "i", ...
Execute sequence of actions. @return true if all actions were successful. @throws IOException on IO error.
[ "Execute", "sequence", "of", "actions", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/rolling/helper/CompositeAction.java#L71-L102
104,210
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/receivers/net/SocketNode13.java
SocketNode13.run
public void run() { LoggingEvent event; Logger remoteLogger; Exception listenerException = null; ObjectInputStream ois = null; try { ois = new ObjectInputStream( new BufferedInputStream(socket.getInputStream())); } catch (Exception e) { ois = null; listenerEx...
java
public void run() { LoggingEvent event; Logger remoteLogger; Exception listenerException = null; ObjectInputStream ois = null; try { ois = new ObjectInputStream( new BufferedInputStream(socket.getInputStream())); } catch (Exception e) { ois = null; listenerEx...
[ "public", "void", "run", "(", ")", "{", "LoggingEvent", "event", ";", "Logger", "remoteLogger", ";", "Exception", "listenerException", "=", "null", ";", "ObjectInputStream", "ois", "=", "null", ";", "try", "{", "ois", "=", "new", "ObjectInputStream", "(", "n...
Deserialize events from socket until interrupted.
[ "Deserialize", "events", "from", "socket", "until", "interrupted", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/receivers/net/SocketNode13.java#L144-L232
104,211
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/receivers/net/SocketNode13.java
SocketNode13.fireSocketClosedEvent
private void fireSocketClosedEvent(final Exception listenerException) { synchronized (listenerList) { for (Iterator iter = listenerList.iterator(); iter.hasNext();) { SocketNodeEventListener snel = (SocketNodeEventListener) iter.next(); if (snel != null) { ...
java
private void fireSocketClosedEvent(final Exception listenerException) { synchronized (listenerList) { for (Iterator iter = listenerList.iterator(); iter.hasNext();) { SocketNodeEventListener snel = (SocketNodeEventListener) iter.next(); if (snel != null) { ...
[ "private", "void", "fireSocketClosedEvent", "(", "final", "Exception", "listenerException", ")", "{", "synchronized", "(", "listenerList", ")", "{", "for", "(", "Iterator", "iter", "=", "listenerList", ".", "iterator", "(", ")", ";", "iter", ".", "hasNext", "(...
Notifies all registered listeners regarding the closing of the Socket. @param listenerException listener exception
[ "Notifies", "all", "registered", "listeners", "regarding", "the", "closing", "of", "the", "Socket", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/receivers/net/SocketNode13.java#L238-L248
104,212
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/receivers/net/SocketNode13.java
SocketNode13.fireSocketOpened
private void fireSocketOpened(final String remoteInfo) { synchronized (listenerList) { for (Iterator iter = listenerList.iterator(); iter.hasNext();) { SocketNodeEventListener snel = (SocketNodeEventListener) iter.next(); if (snel != null) { snel.s...
java
private void fireSocketOpened(final String remoteInfo) { synchronized (listenerList) { for (Iterator iter = listenerList.iterator(); iter.hasNext();) { SocketNodeEventListener snel = (SocketNodeEventListener) iter.next(); if (snel != null) { snel.s...
[ "private", "void", "fireSocketOpened", "(", "final", "String", "remoteInfo", ")", "{", "synchronized", "(", "listenerList", ")", "{", "for", "(", "Iterator", "iter", "=", "listenerList", ".", "iterator", "(", ")", ";", "iter", ".", "hasNext", "(", ")", ";"...
Notifies all registered listeners regarding the opening of a Socket. @param remoteInfo remote info
[ "Notifies", "all", "registered", "listeners", "regarding", "the", "opening", "of", "a", "Socket", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/receivers/net/SocketNode13.java#L254-L264
104,213
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/receivers/net/SocketNode13.java
SocketNode13.close
public void close() throws IOException { getLogger().debug("closing socket"); this.closed = true; socket.close(); fireSocketClosedEvent(null); }
java
public void close() throws IOException { getLogger().debug("closing socket"); this.closed = true; socket.close(); fireSocketClosedEvent(null); }
[ "public", "void", "close", "(", ")", "throws", "IOException", "{", "getLogger", "(", ")", ".", "debug", "(", "\"closing socket\"", ")", ";", "this", ".", "closed", "=", "true", ";", "socket", ".", "close", "(", ")", ";", "fireSocketClosedEvent", "(", "nu...
Close the node and underlying socket
[ "Close", "the", "node", "and", "underlying", "socket" ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/receivers/net/SocketNode13.java#L285-L290
104,214
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginSkeleton.java
PluginSkeleton.setName
public void setName(final String newName) { String oldName = this.name; this.name = newName; propertySupport.firePropertyChange("name", oldName, this.name); }
java
public void setName(final String newName) { String oldName = this.name; this.name = newName; propertySupport.firePropertyChange("name", oldName, this.name); }
[ "public", "void", "setName", "(", "final", "String", "newName", ")", "{", "String", "oldName", "=", "this", ".", "name", ";", "this", ".", "name", "=", "newName", ";", "propertySupport", ".", "firePropertyChange", "(", "\"name\"", ",", "oldName", ",", "thi...
Sets the name of the plugin and notifies PropertyChangeListeners of the change. @param newName the name of the plugin to set.
[ "Sets", "the", "name", "of", "the", "plugin", "and", "notifies", "PropertyChangeListeners", "of", "the", "change", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginSkeleton.java#L84-L88
104,215
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginSkeleton.java
PluginSkeleton.setLoggerRepository
public void setLoggerRepository(final LoggerRepository repository) { Object oldValue = this.repository; this.repository = repository; firePropertyChange("loggerRepository", oldValue, this.repository); }
java
public void setLoggerRepository(final LoggerRepository repository) { Object oldValue = this.repository; this.repository = repository; firePropertyChange("loggerRepository", oldValue, this.repository); }
[ "public", "void", "setLoggerRepository", "(", "final", "LoggerRepository", "repository", ")", "{", "Object", "oldValue", "=", "this", ".", "repository", ";", "this", ".", "repository", "=", "repository", ";", "firePropertyChange", "(", "\"loggerRepository\"", ",", ...
Sets the logger repository used by this plugin and notifies a relevant PropertyChangeListeners registered. This repository will be used by the plugin functionality. @param repository the logger repository that this plugin should affect.
[ "Sets", "the", "logger", "repository", "used", "by", "this", "plugin", "and", "notifies", "a", "relevant", "PropertyChangeListeners", "registered", ".", "This", "repository", "will", "be", "used", "by", "the", "plugin", "functionality", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginSkeleton.java#L106-L110
104,216
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginSkeleton.java
PluginSkeleton.isEquivalent
public boolean isEquivalent(final Plugin testPlugin) { return (repository == testPlugin.getLoggerRepository()) && ((this.name == null && testPlugin.getName() == null) || (this.name != null && name.equals(testPlugin.getName()))) && this.g...
java
public boolean isEquivalent(final Plugin testPlugin) { return (repository == testPlugin.getLoggerRepository()) && ((this.name == null && testPlugin.getName() == null) || (this.name != null && name.equals(testPlugin.getName()))) && this.g...
[ "public", "boolean", "isEquivalent", "(", "final", "Plugin", "testPlugin", ")", "{", "return", "(", "repository", "==", "testPlugin", ".", "getLoggerRepository", "(", ")", ")", "&&", "(", "(", "this", ".", "name", "==", "null", "&&", "testPlugin", ".", "ge...
Returns true if the plugin has the same name and logger repository as the testPlugin passed in. @param testPlugin The plugin to test equivalency against. @return Returns true if testPlugin is considered to be equivalent.
[ "Returns", "true", "if", "the", "plugin", "has", "the", "same", "name", "and", "logger", "repository", "as", "the", "testPlugin", "passed", "in", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginSkeleton.java#L128-L134
104,217
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginSkeleton.java
PluginSkeleton.firePropertyChange
protected final void firePropertyChange( final String propertyName, final Object oldValue, final Object newValue) { propertySupport.firePropertyChange(propertyName, oldValue, newValue); }
java
protected final void firePropertyChange( final String propertyName, final Object oldValue, final Object newValue) { propertySupport.firePropertyChange(propertyName, oldValue, newValue); }
[ "protected", "final", "void", "firePropertyChange", "(", "final", "String", "propertyName", ",", "final", "Object", "oldValue", ",", "final", "Object", "newValue", ")", "{", "propertySupport", ".", "firePropertyChange", "(", "propertyName", ",", "oldValue", ",", "...
Fire property change event to appropriate listeners. @param propertyName property name. @param oldValue old value. @param newValue new value.
[ "Fire", "property", "change", "event", "to", "appropriate", "listeners", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/component/plugins/PluginSkeleton.java#L216-L221
104,218
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/receivers/net/SocketReceiver.java
SocketReceiver.closeAllAcceptedSockets
private synchronized void closeAllAcceptedSockets() { for (int x = 0; x < socketList.size(); x++) { try { ((Socket) socketList.get(x)).close(); } catch (Exception e) { // ignore for now } } // clear member variables socketMap.clear(); socketList.clear(); }
java
private synchronized void closeAllAcceptedSockets() { for (int x = 0; x < socketList.size(); x++) { try { ((Socket) socketList.get(x)).close(); } catch (Exception e) { // ignore for now } } // clear member variables socketMap.clear(); socketList.clear(); }
[ "private", "synchronized", "void", "closeAllAcceptedSockets", "(", ")", "{", "for", "(", "int", "x", "=", "0", ";", "x", "<", "socketList", ".", "size", "(", ")", ";", "x", "++", ")", "{", "try", "{", "(", "(", "Socket", ")", "socketList", ".", "ge...
Closes all the connected sockets in the List.
[ "Closes", "all", "the", "connected", "sockets", "in", "the", "List", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/receivers/net/SocketReceiver.java#L218-L230
104,219
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/slf4j/helpers/BasicMarker.java
BasicMarker.contains
public boolean contains(String name) { if (name == null) { throw new IllegalArgumentException("Other cannot be null"); } if (this.name.equals(name)) { return true; } if (hasReferences()) { for (Marker ref : referenceList) { ...
java
public boolean contains(String name) { if (name == null) { throw new IllegalArgumentException("Other cannot be null"); } if (this.name.equals(name)) { return true; } if (hasReferences()) { for (Marker ref : referenceList) { ...
[ "public", "boolean", "contains", "(", "String", "name", ")", "{", "if", "(", "name", "==", "null", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Other cannot be null\"", ")", ";", "}", "if", "(", "this", ".", "name", ".", "equals", "(", "...
This method is mainly used with Expression Evaluators.
[ "This", "method", "is", "mainly", "used", "with", "Expression", "Evaluators", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/slf4j/helpers/BasicMarker.java#L111-L128
104,220
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/CloseableThreadContext.java
CloseableThreadContext.push
public static CloseableThreadContext.Instance push(final String message, final Object... args) { return new CloseableThreadContext.Instance().push(message, args); }
java
public static CloseableThreadContext.Instance push(final String message, final Object... args) { return new CloseableThreadContext.Instance().push(message, args); }
[ "public", "static", "CloseableThreadContext", ".", "Instance", "push", "(", "final", "String", "message", ",", "final", "Object", "...", "args", ")", "{", "return", "new", "CloseableThreadContext", ".", "Instance", "(", ")", ".", "push", "(", "message", ",", ...
Pushes new diagnostic context information on to the Thread Context Stack. The information will be popped off when the instance is closed. @param message The new diagnostic context information. @param args Parameters for the message. @return a new instance that will back out the changes when closed.
[ "Pushes", "new", "diagnostic", "context", "information", "on", "to", "the", "Thread", "Context", "Stack", ".", "The", "information", "will", "be", "popped", "off", "when", "the", "instance", "is", "closed", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/CloseableThreadContext.java#L61-L63
104,221
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/CloseableThreadContext.java
CloseableThreadContext.pushAll
public static CloseableThreadContext.Instance pushAll(final List<String> messages) { return new CloseableThreadContext.Instance().pushAll(messages); }
java
public static CloseableThreadContext.Instance pushAll(final List<String> messages) { return new CloseableThreadContext.Instance().pushAll(messages); }
[ "public", "static", "CloseableThreadContext", ".", "Instance", "pushAll", "(", "final", "List", "<", "String", ">", "messages", ")", "{", "return", "new", "CloseableThreadContext", ".", "Instance", "(", ")", ".", "pushAll", "(", "messages", ")", ";", "}" ]
Populates the Thread Context Stack with the supplied stack. The information will be popped off when the instance is closed. @param messages The list of messages to be added @return a new instance that will back out the changes when closed. @since 2.8
[ "Populates", "the", "Thread", "Context", "Stack", "with", "the", "supplied", "stack", ".", "The", "information", "will", "be", "popped", "off", "when", "the", "instance", "is", "closed", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/CloseableThreadContext.java#L86-L88
104,222
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/EventLogger.java
EventLogger.logEvent
public static void logEvent(final StructuredDataMessage msg) { LOGGER.logIfEnabled(FQCN, Level.OFF, EVENT_MARKER, msg, null); }
java
public static void logEvent(final StructuredDataMessage msg) { LOGGER.logIfEnabled(FQCN, Level.OFF, EVENT_MARKER, msg, null); }
[ "public", "static", "void", "logEvent", "(", "final", "StructuredDataMessage", "msg", ")", "{", "LOGGER", ".", "logIfEnabled", "(", "FQCN", ",", "Level", ".", "OFF", ",", "EVENT_MARKER", ",", "msg", ",", "null", ")", ";", "}" ]
Logs events with a level of ALL. @param msg The event StructuredDataMessage.
[ "Logs", "events", "with", "a", "level", "of", "ALL", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/EventLogger.java#L46-L48
104,223
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.trace
public void trace(Object message) { doLog(Level.TRACE, FQCN, message, null, null); }
java
public void trace(Object message) { doLog(Level.TRACE, FQCN, message, null, null); }
[ "public", "void", "trace", "(", "Object", "message", ")", "{", "doLog", "(", "Level", ".", "TRACE", ",", "FQCN", ",", "message", ",", "null", ",", "null", ")", ";", "}" ]
Issue a log message with a level of TRACE. @param message the message
[ "Issue", "a", "log", "message", "with", "a", "level", "of", "TRACE", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L106-L108
104,224
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.trace
public void trace(Object message, Throwable t) { doLog(Level.TRACE, FQCN, message, null, t); }
java
public void trace(Object message, Throwable t) { doLog(Level.TRACE, FQCN, message, null, t); }
[ "public", "void", "trace", "(", "Object", "message", ",", "Throwable", "t", ")", "{", "doLog", "(", "Level", ".", "TRACE", ",", "FQCN", ",", "message", ",", "null", ",", "t", ")", ";", "}" ]
Issue a log message and throwable with a level of TRACE. @param message the message @param t the throwable
[ "Issue", "a", "log", "message", "and", "throwable", "with", "a", "level", "of", "TRACE", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L116-L118
104,225
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.trace
@Deprecated public void trace(Object message, Object[] params) { doLog(Level.TRACE, FQCN, message, params, null); }
java
@Deprecated public void trace(Object message, Object[] params) { doLog(Level.TRACE, FQCN, message, params, null); }
[ "@", "Deprecated", "public", "void", "trace", "(", "Object", "message", ",", "Object", "[", "]", "params", ")", "{", "doLog", "(", "Level", ".", "TRACE", ",", "FQCN", ",", "message", ",", "params", ",", "null", ")", ";", "}" ]
Issue a log message with parameters with a level of TRACE. @param message the message @param params the message parameters @deprecated To log a message with parameters, using {@link #tracev(String, Object...)} is recommended.
[ "Issue", "a", "log", "message", "with", "parameters", "with", "a", "level", "of", "TRACE", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L138-L141
104,226
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.debug
public void debug(Object message) { doLog(Level.DEBUG, FQCN, message, null, null); }
java
public void debug(Object message) { doLog(Level.DEBUG, FQCN, message, null, null); }
[ "public", "void", "debug", "(", "Object", "message", ")", "{", "doLog", "(", "Level", ".", "DEBUG", ",", "FQCN", ",", "message", ",", "null", ",", "null", ")", ";", "}" ]
Issue a log message with a level of DEBUG. @param message the message
[ "Issue", "a", "log", "message", "with", "a", "level", "of", "DEBUG", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L530-L532
104,227
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.debug
public void debug(Object message, Throwable t) { doLog(Level.DEBUG, FQCN, message, null, t); }
java
public void debug(Object message, Throwable t) { doLog(Level.DEBUG, FQCN, message, null, t); }
[ "public", "void", "debug", "(", "Object", "message", ",", "Throwable", "t", ")", "{", "doLog", "(", "Level", ".", "DEBUG", ",", "FQCN", ",", "message", ",", "null", ",", "t", ")", ";", "}" ]
Issue a log message and throwable with a level of DEBUG. @param message the message @param t the throwable
[ "Issue", "a", "log", "message", "and", "throwable", "with", "a", "level", "of", "DEBUG", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L540-L542
104,228
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.debug
public void debug(String loggerFqcn, Object message, Throwable t) { doLog(Level.DEBUG, loggerFqcn, message, null, t); }
java
public void debug(String loggerFqcn, Object message, Throwable t) { doLog(Level.DEBUG, loggerFqcn, message, null, t); }
[ "public", "void", "debug", "(", "String", "loggerFqcn", ",", "Object", "message", ",", "Throwable", "t", ")", "{", "doLog", "(", "Level", ".", "DEBUG", ",", "loggerFqcn", ",", "message", ",", "null", ",", "t", ")", ";", "}" ]
Issue a log message and throwable with a level of DEBUG and a specific logger class name. @param loggerFqcn the logger class name @param message the message @param t the throwable
[ "Issue", "a", "log", "message", "and", "throwable", "with", "a", "level", "of", "DEBUG", "and", "a", "specific", "logger", "class", "name", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L551-L553
104,229
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.debug
@Deprecated public void debug(Object message, Object[] params) { doLog(Level.DEBUG, FQCN, message, params, null); }
java
@Deprecated public void debug(Object message, Object[] params) { doLog(Level.DEBUG, FQCN, message, params, null); }
[ "@", "Deprecated", "public", "void", "debug", "(", "Object", "message", ",", "Object", "[", "]", "params", ")", "{", "doLog", "(", "Level", ".", "DEBUG", ",", "FQCN", ",", "message", ",", "params", ",", "null", ")", ";", "}" ]
Issue a log message with parameters with a level of DEBUG. @param message the message @param params the message parameters @deprecated To log a message with parameters, using {@link #debugv(String, Object...)} is recommended.
[ "Issue", "a", "log", "message", "with", "parameters", "with", "a", "level", "of", "DEBUG", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L562-L565
104,230
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.debug
@Deprecated public void debug(Object message, Object[] params, Throwable t) { doLog(Level.DEBUG, FQCN, message, params, t); }
java
@Deprecated public void debug(Object message, Object[] params, Throwable t) { doLog(Level.DEBUG, FQCN, message, params, t); }
[ "@", "Deprecated", "public", "void", "debug", "(", "Object", "message", ",", "Object", "[", "]", "params", ",", "Throwable", "t", ")", "{", "doLog", "(", "Level", ".", "DEBUG", ",", "FQCN", ",", "message", ",", "params", ",", "t", ")", ";", "}" ]
Issue a log message with parameters and a throwable with a level of DEBUG. @param message the message @param params the message parameters @param t the throwable @deprecated To log a message with parameters, using {@link #debugv(Throwable, String, Object...)} is recommended.
[ "Issue", "a", "log", "message", "with", "parameters", "and", "a", "throwable", "with", "a", "level", "of", "DEBUG", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L575-L578
104,231
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.info
public void info(Object message) { doLog(Level.INFO, FQCN, message, null, null); }
java
public void info(Object message) { doLog(Level.INFO, FQCN, message, null, null); }
[ "public", "void", "info", "(", "Object", "message", ")", "{", "doLog", "(", "Level", ".", "INFO", ",", "FQCN", ",", "message", ",", "null", ",", "null", ")", ";", "}" ]
Issue a log message with a level of INFO. @param message the message
[ "Issue", "a", "log", "message", "with", "a", "level", "of", "INFO", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L954-L956
104,232
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.info
public void info(Object message, Throwable t) { doLog(Level.INFO, FQCN, message, null, t); }
java
public void info(Object message, Throwable t) { doLog(Level.INFO, FQCN, message, null, t); }
[ "public", "void", "info", "(", "Object", "message", ",", "Throwable", "t", ")", "{", "doLog", "(", "Level", ".", "INFO", ",", "FQCN", ",", "message", ",", "null", ",", "t", ")", ";", "}" ]
Issue a log message and throwable with a level of INFO. @param message the message @param t the throwable
[ "Issue", "a", "log", "message", "and", "throwable", "with", "a", "level", "of", "INFO", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L964-L966
104,233
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.info
public void info(String loggerFqcn, Object message, Throwable t) { doLog(Level.INFO, loggerFqcn, message, null, t); }
java
public void info(String loggerFqcn, Object message, Throwable t) { doLog(Level.INFO, loggerFqcn, message, null, t); }
[ "public", "void", "info", "(", "String", "loggerFqcn", ",", "Object", "message", ",", "Throwable", "t", ")", "{", "doLog", "(", "Level", ".", "INFO", ",", "loggerFqcn", ",", "message", ",", "null", ",", "t", ")", ";", "}" ]
Issue a log message and throwable with a level of INFO and a specific logger class name. @param loggerFqcn the logger class name @param message the message @param t the throwable
[ "Issue", "a", "log", "message", "and", "throwable", "with", "a", "level", "of", "INFO", "and", "a", "specific", "logger", "class", "name", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L975-L977
104,234
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.info
@Deprecated public void info(Object message, Object[] params) { doLog(Level.INFO, FQCN, message, params, null); }
java
@Deprecated public void info(Object message, Object[] params) { doLog(Level.INFO, FQCN, message, params, null); }
[ "@", "Deprecated", "public", "void", "info", "(", "Object", "message", ",", "Object", "[", "]", "params", ")", "{", "doLog", "(", "Level", ".", "INFO", ",", "FQCN", ",", "message", ",", "params", ",", "null", ")", ";", "}" ]
Issue a log message with parameters with a level of INFO. @param message the message @param params the message parameters @deprecated To log a message with parameters, using {@link #infov(String, Object...)} is recommended.
[ "Issue", "a", "log", "message", "with", "parameters", "with", "a", "level", "of", "INFO", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L986-L989
104,235
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.info
@Deprecated public void info(Object message, Object[] params, Throwable t) { doLog(Level.INFO, FQCN, message, params, t); }
java
@Deprecated public void info(Object message, Object[] params, Throwable t) { doLog(Level.INFO, FQCN, message, params, t); }
[ "@", "Deprecated", "public", "void", "info", "(", "Object", "message", ",", "Object", "[", "]", "params", ",", "Throwable", "t", ")", "{", "doLog", "(", "Level", ".", "INFO", ",", "FQCN", ",", "message", ",", "params", ",", "t", ")", ";", "}" ]
Issue a log message with parameters and a throwable with a level of INFO. @param message the message @param params the message parameters @param t the throwable @deprecated To log a message with parameters, using {@link #infov(Throwable, String, Object...)} is recommended.
[ "Issue", "a", "log", "message", "with", "parameters", "and", "a", "throwable", "with", "a", "level", "of", "INFO", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L999-L1002
104,236
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.warn
public void warn(Object message) { doLog(Level.WARN, FQCN, message, null, null); }
java
public void warn(Object message) { doLog(Level.WARN, FQCN, message, null, null); }
[ "public", "void", "warn", "(", "Object", "message", ")", "{", "doLog", "(", "Level", ".", "WARN", ",", "FQCN", ",", "message", ",", "null", ",", "null", ")", ";", "}" ]
Issue a log message with a level of WARN. @param message the message
[ "Issue", "a", "log", "message", "with", "a", "level", "of", "WARN", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L1225-L1227
104,237
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.warn
public void warn(Object message, Throwable t) { doLog(Level.WARN, FQCN, message, null, t); }
java
public void warn(Object message, Throwable t) { doLog(Level.WARN, FQCN, message, null, t); }
[ "public", "void", "warn", "(", "Object", "message", ",", "Throwable", "t", ")", "{", "doLog", "(", "Level", ".", "WARN", ",", "FQCN", ",", "message", ",", "null", ",", "t", ")", ";", "}" ]
Issue a log message and throwable with a level of WARN. @param message the message @param t the throwable
[ "Issue", "a", "log", "message", "and", "throwable", "with", "a", "level", "of", "WARN", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L1235-L1237
104,238
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.warn
public void warn(String loggerFqcn, Object message, Throwable t) { doLog(Level.WARN, loggerFqcn, message, null, t); }
java
public void warn(String loggerFqcn, Object message, Throwable t) { doLog(Level.WARN, loggerFqcn, message, null, t); }
[ "public", "void", "warn", "(", "String", "loggerFqcn", ",", "Object", "message", ",", "Throwable", "t", ")", "{", "doLog", "(", "Level", ".", "WARN", ",", "loggerFqcn", ",", "message", ",", "null", ",", "t", ")", ";", "}" ]
Issue a log message and throwable with a level of WARN and a specific logger class name. @param loggerFqcn the logger class name @param message the message @param t the throwable
[ "Issue", "a", "log", "message", "and", "throwable", "with", "a", "level", "of", "WARN", "and", "a", "specific", "logger", "class", "name", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L1246-L1248
104,239
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.warn
@Deprecated public void warn(Object message, Object[] params) { doLog(Level.WARN, FQCN, message, params, null); }
java
@Deprecated public void warn(Object message, Object[] params) { doLog(Level.WARN, FQCN, message, params, null); }
[ "@", "Deprecated", "public", "void", "warn", "(", "Object", "message", ",", "Object", "[", "]", "params", ")", "{", "doLog", "(", "Level", ".", "WARN", ",", "FQCN", ",", "message", ",", "params", ",", "null", ")", ";", "}" ]
Issue a log message with parameters with a level of WARN. @param message the message @param params the message parameters @deprecated To log a message with parameters, using {@link #warnv(String, Object...)} is recommended.
[ "Issue", "a", "log", "message", "with", "parameters", "with", "a", "level", "of", "WARN", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L1257-L1260
104,240
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.warn
@Deprecated public void warn(Object message, Object[] params, Throwable t) { doLog(Level.WARN, FQCN, message, params, t); }
java
@Deprecated public void warn(Object message, Object[] params, Throwable t) { doLog(Level.WARN, FQCN, message, params, t); }
[ "@", "Deprecated", "public", "void", "warn", "(", "Object", "message", ",", "Object", "[", "]", "params", ",", "Throwable", "t", ")", "{", "doLog", "(", "Level", ".", "WARN", ",", "FQCN", ",", "message", ",", "params", ",", "t", ")", ";", "}" ]
Issue a log message with parameters and a throwable with a level of WARN. @param message the message @param params the message parameters @param t the throwable @deprecated To log a message with parameters, using {@link #warnv(Throwable, String, Object...)} is recommended.
[ "Issue", "a", "log", "message", "with", "parameters", "and", "a", "throwable", "with", "a", "level", "of", "WARN", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L1270-L1273
104,241
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.error
public void error(Object message) { doLog(Level.ERROR, FQCN, message, null, null); }
java
public void error(Object message) { doLog(Level.ERROR, FQCN, message, null, null); }
[ "public", "void", "error", "(", "Object", "message", ")", "{", "doLog", "(", "Level", ".", "ERROR", ",", "FQCN", ",", "message", ",", "null", ",", "null", ")", ";", "}" ]
Issue a log message with a level of ERROR. @param message the message
[ "Issue", "a", "log", "message", "with", "a", "level", "of", "ERROR", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L1496-L1498
104,242
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.error
public void error(Object message, Throwable t) { doLog(Level.ERROR, FQCN, message, null, t); }
java
public void error(Object message, Throwable t) { doLog(Level.ERROR, FQCN, message, null, t); }
[ "public", "void", "error", "(", "Object", "message", ",", "Throwable", "t", ")", "{", "doLog", "(", "Level", ".", "ERROR", ",", "FQCN", ",", "message", ",", "null", ",", "t", ")", ";", "}" ]
Issue a log message and throwable with a level of ERROR. @param message the message @param t the throwable
[ "Issue", "a", "log", "message", "and", "throwable", "with", "a", "level", "of", "ERROR", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L1506-L1508
104,243
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.error
@Deprecated public void error(Object message, Object[] params) { doLog(Level.ERROR, FQCN, message, params, null); }
java
@Deprecated public void error(Object message, Object[] params) { doLog(Level.ERROR, FQCN, message, params, null); }
[ "@", "Deprecated", "public", "void", "error", "(", "Object", "message", ",", "Object", "[", "]", "params", ")", "{", "doLog", "(", "Level", ".", "ERROR", ",", "FQCN", ",", "message", ",", "params", ",", "null", ")", ";", "}" ]
Issue a log message with parameters with a level of ERROR. @param message the message @param params the message parameters @deprecated To log a message with parameters, using {@link #errorv(String, Object...)} is recommended.
[ "Issue", "a", "log", "message", "with", "parameters", "with", "a", "level", "of", "ERROR", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L1528-L1531
104,244
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.fatal
public void fatal(Object message) { doLog(Level.FATAL, FQCN, message, null, null); }
java
public void fatal(Object message) { doLog(Level.FATAL, FQCN, message, null, null); }
[ "public", "void", "fatal", "(", "Object", "message", ")", "{", "doLog", "(", "Level", ".", "FATAL", ",", "FQCN", ",", "message", ",", "null", ",", "null", ")", ";", "}" ]
Issue a log message with a level of FATAL. @param message the message
[ "Issue", "a", "log", "message", "with", "a", "level", "of", "FATAL", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L1767-L1769
104,245
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.fatal
public void fatal(Object message, Throwable t) { doLog(Level.FATAL, FQCN, message, null, t); }
java
public void fatal(Object message, Throwable t) { doLog(Level.FATAL, FQCN, message, null, t); }
[ "public", "void", "fatal", "(", "Object", "message", ",", "Throwable", "t", ")", "{", "doLog", "(", "Level", ".", "FATAL", ",", "FQCN", ",", "message", ",", "null", ",", "t", ")", ";", "}" ]
Issue a log message and throwable with a level of FATAL. @param message the message @param t the throwable
[ "Issue", "a", "log", "message", "and", "throwable", "with", "a", "level", "of", "FATAL", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L1777-L1779
104,246
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.fatal
@Deprecated public void fatal(Object message, Object[] params) { doLog(Level.FATAL, FQCN, message, params, null); }
java
@Deprecated public void fatal(Object message, Object[] params) { doLog(Level.FATAL, FQCN, message, params, null); }
[ "@", "Deprecated", "public", "void", "fatal", "(", "Object", "message", ",", "Object", "[", "]", "params", ")", "{", "doLog", "(", "Level", ".", "FATAL", ",", "FQCN", ",", "message", ",", "params", ",", "null", ")", ";", "}" ]
Issue a log message with parameters with a level of FATAL. @param message the message @param params the message parameters @deprecated To log a message with parameters, using {@link #fatalv(String, Object...)} is recommended.
[ "Issue", "a", "log", "message", "with", "parameters", "with", "a", "level", "of", "FATAL", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L1799-L1802
104,247
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.log
public void log(Level level, String loggerFqcn, Object message, Throwable t) { doLog(level, loggerFqcn, message, null, t); }
java
public void log(Level level, String loggerFqcn, Object message, Throwable t) { doLog(level, loggerFqcn, message, null, t); }
[ "public", "void", "log", "(", "Level", "level", ",", "String", "loggerFqcn", ",", "Object", "message", ",", "Throwable", "t", ")", "{", "doLog", "(", "level", ",", "loggerFqcn", ",", "message", ",", "null", ",", "t", ")", ";", "}" ]
Issue a log message and throwable at the given log level and a specific logger class name. @param level the level @param loggerFqcn the logger class name @param message the message @param t the throwable
[ "Issue", "a", "log", "message", "and", "throwable", "at", "the", "given", "log", "level", "and", "a", "specific", "logger", "class", "name", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L2062-L2064
104,248
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.log
@Deprecated public void log(Level level, Object message, Object[] params) { doLog(level, FQCN, message, params, null); }
java
@Deprecated public void log(Level level, Object message, Object[] params) { doLog(level, FQCN, message, params, null); }
[ "@", "Deprecated", "public", "void", "log", "(", "Level", "level", ",", "Object", "message", ",", "Object", "[", "]", "params", ")", "{", "doLog", "(", "level", ",", "FQCN", ",", "message", ",", "params", ",", "null", ")", ";", "}" ]
Issue a log message with parameters at the given log level. @param level the level @param message the message @param params the message parameters @deprecated To log a message with parameters, using {@link #logv(Level, String, Object...)} is recommended.
[ "Issue", "a", "log", "message", "with", "parameters", "at", "the", "given", "log", "level", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L2074-L2077
104,249
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.log
@Deprecated public void log(Level level, Object message, Object[] params, Throwable t) { doLog(level, FQCN, message, params, t); }
java
@Deprecated public void log(Level level, Object message, Object[] params, Throwable t) { doLog(level, FQCN, message, params, t); }
[ "@", "Deprecated", "public", "void", "log", "(", "Level", "level", ",", "Object", "message", ",", "Object", "[", "]", "params", ",", "Throwable", "t", ")", "{", "doLog", "(", "level", ",", "FQCN", ",", "message", ",", "params", ",", "t", ")", ";", ...
Issue a log message with parameters and a throwable at the given log level. @param level the level @param message the message @param params the message parameters @param t the throwable @deprecated To log a message with parameters, using {@link #logv(Level, Throwable, String, Object...)} is recommended.
[ "Issue", "a", "log", "message", "with", "parameters", "and", "a", "throwable", "at", "the", "given", "log", "level", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L2088-L2091
104,250
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.getMessageLogger
public static <T> T getMessageLogger(Class<T> type, String category) { return getMessageLogger(type, category, Locale.getDefault()); }
java
public static <T> T getMessageLogger(Class<T> type, String category) { return getMessageLogger(type, category, Locale.getDefault()); }
[ "public", "static", "<", "T", ">", "T", "getMessageLogger", "(", "Class", "<", "T", ">", "type", ",", "String", "category", ")", "{", "return", "getMessageLogger", "(", "type", ",", "category", ",", "Locale", ".", "getDefault", "(", ")", ")", ";", "}" ...
Get a typed logger which implements the given interface. The current default locale will be used for the new logger. @param type the interface to implement @param category the logger category @param <T> the logger type @return the typed logger
[ "Get", "a", "typed", "logger", "which", "implements", "the", "given", "interface", ".", "The", "current", "default", "locale", "will", "be", "used", "for", "the", "new", "logger", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L2506-L2508
104,251
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/jboss/logging/Logger.java
Logger.getMessageLogger
public static <T> T getMessageLogger(final Class<T> type, final String category, final Locale locale) { return doPrivileged(new PrivilegedAction<T>() { public T run() { String language = locale.getLanguage(); String country = locale.getCountry(); Strin...
java
public static <T> T getMessageLogger(final Class<T> type, final String category, final Locale locale) { return doPrivileged(new PrivilegedAction<T>() { public T run() { String language = locale.getLanguage(); String country = locale.getCountry(); Strin...
[ "public", "static", "<", "T", ">", "T", "getMessageLogger", "(", "final", "Class", "<", "T", ">", "type", ",", "final", "String", "category", ",", "final", "Locale", "locale", ")", "{", "return", "doPrivileged", "(", "new", "PrivilegedAction", "<", "T", ...
Get a typed logger which implements the given interface. The given locale will be used for the new logger. @param type the interface to implement @param category the logger category @param locale the locale for the new logger @param <T> the logger type @return the typed logger
[ "Get", "a", "typed", "logger", "which", "implements", "the", "given", "interface", ".", "The", "given", "locale", "will", "be", "used", "for", "the", "new", "logger", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/jboss/logging/Logger.java#L2519-L2566
104,252
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/rule/NotEqualsRule.java
NotEqualsRule.getRule
public static Rule getRule(final String field, final String value) { if (field.equalsIgnoreCase(LoggingEventFieldResolver.LEVEL_FIELD)) { return NotLevelEqualsRule.getRule(value); } else { return new NotEqualsRule(field, value); } }
java
public static Rule getRule(final String field, final String value) { if (field.equalsIgnoreCase(LoggingEventFieldResolver.LEVEL_FIELD)) { return NotLevelEqualsRule.getRule(value); } else { return new NotEqualsRule(field, value); } }
[ "public", "static", "Rule", "getRule", "(", "final", "String", "field", ",", "final", "String", "value", ")", "{", "if", "(", "field", ".", "equalsIgnoreCase", "(", "LoggingEventFieldResolver", ".", "LEVEL_FIELD", ")", ")", "{", "return", "NotLevelEqualsRule", ...
Get new instance. @param field field @param value value @return new instance.
[ "Get", "new", "instance", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/rule/NotEqualsRule.java#L75-L81
104,253
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/rule/NotEqualsRule.java
NotEqualsRule.getRule
public static Rule getRule(final Stack stack) { if (stack.size() < 2) { throw new IllegalArgumentException( "Invalid NOT EQUALS rule - expected two parameters but received " + stack.size()); } String p2 = stack.pop().toString(); String p1 = stack.pop().toString(); if (p1.equa...
java
public static Rule getRule(final Stack stack) { if (stack.size() < 2) { throw new IllegalArgumentException( "Invalid NOT EQUALS rule - expected two parameters but received " + stack.size()); } String p2 = stack.pop().toString(); String p1 = stack.pop().toString(); if (p1.equa...
[ "public", "static", "Rule", "getRule", "(", "final", "Stack", "stack", ")", "{", "if", "(", "stack", ".", "size", "(", ")", "<", "2", ")", "{", "throw", "new", "IllegalArgumentException", "(", "\"Invalid NOT EQUALS rule - expected two parameters but received \"", ...
Get new instance from top two elements of stack. @param stack stack. @return new instance.
[ "Get", "new", "instance", "from", "top", "two", "elements", "of", "stack", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/rule/NotEqualsRule.java#L88-L103
104,254
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/receivers/db/ConnectionSourceSkeleton.java
ConnectionSourceSkeleton.discoverConnnectionProperties
public void discoverConnnectionProperties() { Connection connection = null; try { connection = getConnection(); if (connection == null) { getLogger().warn("Could not get a conneciton"); return; } DatabaseMetaData meta = connection.getMetaData(); Util util = new Util...
java
public void discoverConnnectionProperties() { Connection connection = null; try { connection = getConnection(); if (connection == null) { getLogger().warn("Could not get a conneciton"); return; } DatabaseMetaData meta = connection.getMetaData(); Util util = new Util...
[ "public", "void", "discoverConnnectionProperties", "(", ")", "{", "Connection", "connection", "=", "null", ";", "try", "{", "connection", "=", "getConnection", "(", ")", ";", "if", "(", "connection", "==", "null", ")", "{", "getLogger", "(", ")", ".", "war...
Learn relevant information about this connection source.
[ "Learn", "relevant", "information", "about", "this", "connection", "source", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/receivers/db/ConnectionSourceSkeleton.java#L49-L73
104,255
ops4j/org.ops4j.pax.logging
pax-logging-log4j2/src/main/java/org/apache/logging/log4j/core/impl/ThrowableProxy.java
ThrowableProxy.getSuppressedStackTrace
public String getSuppressedStackTrace(final String suffix) { final ThrowableProxy[] suppressed = this.getSuppressedProxies(); if (suppressed == null || suppressed.length == 0) { return Strings.EMPTY; } final StringBuilder sb = new StringBuilder("Suppressed Stack Trace Element...
java
public String getSuppressedStackTrace(final String suffix) { final ThrowableProxy[] suppressed = this.getSuppressedProxies(); if (suppressed == null || suppressed.length == 0) { return Strings.EMPTY; } final StringBuilder sb = new StringBuilder("Suppressed Stack Trace Element...
[ "public", "String", "getSuppressedStackTrace", "(", "final", "String", "suffix", ")", "{", "final", "ThrowableProxy", "[", "]", "suppressed", "=", "this", ".", "getSuppressedProxies", "(", ")", ";", "if", "(", "suppressed", "==", "null", "||", "suppressed", "....
Format the suppressed Throwables. @return The formatted suppressed Throwables. @param suffix
[ "Format", "the", "suppressed", "Throwables", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-log4j2/src/main/java/org/apache/logging/log4j/core/impl/ThrowableProxy.java#L535-L545
104,256
ops4j/org.ops4j.pax.logging
pax-logging-log4j2/src/main/java/org/apache/logging/log4j/core/impl/ThrowableProxy.java
ThrowableProxy.loadClass
private Class<?> loadClass(final ClassLoader lastLoader, final String className) { // XXX: this is overly complicated Class<?> clazz; if (lastLoader != null) { try { clazz = lastLoader.loadClass(className); if (clazz != null) { retu...
java
private Class<?> loadClass(final ClassLoader lastLoader, final String className) { // XXX: this is overly complicated Class<?> clazz; if (lastLoader != null) { try { clazz = lastLoader.loadClass(className); if (clazz != null) { retu...
[ "private", "Class", "<", "?", ">", "loadClass", "(", "final", "ClassLoader", "lastLoader", ",", "final", "String", "className", ")", "{", "// XXX: this is overly complicated", "Class", "<", "?", ">", "clazz", ";", "if", "(", "lastLoader", "!=", "null", ")", ...
Loads classes not located via Reflection.getCallerClass. @param lastLoader The ClassLoader that loaded the Class that called this Class. @param className The name of the Class. @return The Class object for the Class or null if it could not be located.
[ "Loads", "classes", "not", "located", "via", "Reflection", ".", "getCallerClass", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-log4j2/src/main/java/org/apache/logging/log4j/core/impl/ThrowableProxy.java#L587-L608
104,257
ops4j/org.ops4j.pax.logging
pax-logging-log4j2/src/main/java/org/apache/logging/log4j/core/impl/ThrowableProxy.java
ThrowableProxy.toCacheEntry
private CacheEntry toCacheEntry(final StackTraceElement stackTraceElement, final Class<?> callerClass, final boolean exact) { String location = "?"; String version = "?"; ClassLoader lastLoader = null; if (callerClass != null) { try { ...
java
private CacheEntry toCacheEntry(final StackTraceElement stackTraceElement, final Class<?> callerClass, final boolean exact) { String location = "?"; String version = "?"; ClassLoader lastLoader = null; if (callerClass != null) { try { ...
[ "private", "CacheEntry", "toCacheEntry", "(", "final", "StackTraceElement", "stackTraceElement", ",", "final", "Class", "<", "?", ">", "callerClass", ",", "final", "boolean", "exact", ")", "{", "String", "location", "=", "\"?\"", ";", "String", "version", "=", ...
Construct the CacheEntry from the Class's information. @param stackTraceElement The stack trace element @param callerClass The Class. @param exact True if the class was obtained via Reflection.getCallerClass. @return The CacheEntry.
[ "Construct", "the", "CacheEntry", "from", "the", "Class", "s", "information", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-log4j2/src/main/java/org/apache/logging/log4j/core/impl/ThrowableProxy.java#L626-L644
104,258
ops4j/org.ops4j.pax.logging
pax-logging-log4j2/src/main/java/org/apache/logging/log4j/core/impl/ThrowableProxy.java
ThrowableProxy.toExtendedStackTrace
ExtendedStackTraceElement[] toExtendedStackTrace(final Stack<Class<?>> stack, final Map<String, CacheEntry> map, final StackTraceElement[] rootTrace, final StackTraceElement[] stackTrace) { int stackLength;...
java
ExtendedStackTraceElement[] toExtendedStackTrace(final Stack<Class<?>> stack, final Map<String, CacheEntry> map, final StackTraceElement[] rootTrace, final StackTraceElement[] stackTrace) { int stackLength;...
[ "ExtendedStackTraceElement", "[", "]", "toExtendedStackTrace", "(", "final", "Stack", "<", "Class", "<", "?", ">", ">", "stack", ",", "final", "Map", "<", "String", ",", "CacheEntry", ">", "map", ",", "final", "StackTraceElement", "[", "]", "rootTrace", ",",...
Resolve all the stack entries in this stack trace that are not common with the parent. @param stack The callers Class stack. @param map The cache of CacheEntry objects. @param rootTrace The first stack trace resolve or null. @param stackTrace The stack trace being resolved. @return The StackTracePackageEl...
[ "Resolve", "all", "the", "stack", "entries", "in", "this", "stack", "trace", "that", "are", "not", "common", "with", "the", "parent", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-log4j2/src/main/java/org/apache/logging/log4j/core/impl/ThrowableProxy.java#L655-L709
104,259
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/rolling/FixedWindowRollingPolicy.java
FixedWindowRollingPolicy.purge
private boolean purge(final int lowIndex, final int highIndex) { int suffixLength = 0; List renames = new ArrayList(); StringBuffer buf = new StringBuffer(); formatFileName(new Integer(lowIndex), buf); String lowFilename = buf.toString(); if (lowFilename.endsWith(".gz")) { suffixLength ...
java
private boolean purge(final int lowIndex, final int highIndex) { int suffixLength = 0; List renames = new ArrayList(); StringBuffer buf = new StringBuffer(); formatFileName(new Integer(lowIndex), buf); String lowFilename = buf.toString(); if (lowFilename.endsWith(".gz")) { suffixLength ...
[ "private", "boolean", "purge", "(", "final", "int", "lowIndex", ",", "final", "int", "highIndex", ")", "{", "int", "suffixLength", "=", "0", ";", "List", "renames", "=", "new", "ArrayList", "(", ")", ";", "StringBuffer", "buf", "=", "new", "StringBuffer", ...
Purge and rename old log files in preparation for rollover @param lowIndex low index @param highIndex high index. Log file associated with high index will be deleted if needed. @return true if purge was successful and rollover should be attempted.
[ "Purge", "and", "rename", "old", "log", "files", "in", "preparation", "for", "rollover" ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/rolling/FixedWindowRollingPolicy.java#L236-L322
104,260
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/rule/InFixToPostFix.java
InFixToPostFix.isOperand
public static boolean isOperand(final String s) { String symbol = s.toLowerCase(Locale.ENGLISH); return (!operators.contains(symbol)); }
java
public static boolean isOperand(final String s) { String symbol = s.toLowerCase(Locale.ENGLISH); return (!operators.contains(symbol)); }
[ "public", "static", "boolean", "isOperand", "(", "final", "String", "s", ")", "{", "String", "symbol", "=", "s", ".", "toLowerCase", "(", "Locale", ".", "ENGLISH", ")", ";", "return", "(", "!", "operators", ".", "contains", "(", "symbol", ")", ")", ";"...
Evaluates whether symbol is operand. @param s symbol. @return true if operand.
[ "Evaluates", "whether", "symbol", "is", "operand", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/rule/InFixToPostFix.java#L111-L114
104,261
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/rule/InFixToPostFix.java
InFixToPostFix.precedes
boolean precedes(final String s1, final String s2) { String symbol1 = s1.toLowerCase(Locale.ENGLISH); String symbol2 = s2.toLowerCase(Locale.ENGLISH); if (!precedenceMap.keySet().contains(symbol1)) { return false; } if (!precedenceMap.keySet().contains(symbol2)) { return false; } ...
java
boolean precedes(final String s1, final String s2) { String symbol1 = s1.toLowerCase(Locale.ENGLISH); String symbol2 = s2.toLowerCase(Locale.ENGLISH); if (!precedenceMap.keySet().contains(symbol1)) { return false; } if (!precedenceMap.keySet().contains(symbol2)) { return false; } ...
[ "boolean", "precedes", "(", "final", "String", "s1", ",", "final", "String", "s2", ")", "{", "String", "symbol1", "=", "s1", ".", "toLowerCase", "(", "Locale", ".", "ENGLISH", ")", ";", "String", "symbol2", "=", "s2", ".", "toLowerCase", "(", "Locale", ...
Determines whether one symbol precedes another. @param s1 symbol 1 @param s2 symbol 2 @return true if symbol 1 precedes symbol 2
[ "Determines", "whether", "one", "symbol", "precedes", "another", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/rule/InFixToPostFix.java#L122-L140
104,262
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/rule/InFixToPostFix.java
InFixToPostFix.infixToPostFix
String infixToPostFix(final CustomTokenizer tokenizer) { final String space = " "; StringBuffer postfix = new StringBuffer(); Stack stack = new Stack(); while (tokenizer.hasMoreTokens()) { String token = tokenizer.nextToken(); boolean inText = (token.startsWith("'") && (!token.endsWith("'...
java
String infixToPostFix(final CustomTokenizer tokenizer) { final String space = " "; StringBuffer postfix = new StringBuffer(); Stack stack = new Stack(); while (tokenizer.hasMoreTokens()) { String token = tokenizer.nextToken(); boolean inText = (token.startsWith("'") && (!token.endsWith("'...
[ "String", "infixToPostFix", "(", "final", "CustomTokenizer", "tokenizer", ")", "{", "final", "String", "space", "=", "\" \"", ";", "StringBuffer", "postfix", "=", "new", "StringBuffer", "(", ")", ";", "Stack", "stack", "=", "new", "Stack", "(", ")", ";", "...
convert in-fix expression to post-fix. @param tokenizer tokenizer. @return post-fix expression.
[ "convert", "in", "-", "fix", "expression", "to", "post", "-", "fix", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/rule/InFixToPostFix.java#L147-L221
104,263
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/rolling/FilterBasedTriggeringPolicy.java
FilterBasedTriggeringPolicy.addFilter
public void addFilter(final Filter newFilter) { if (headFilter == null) { headFilter = newFilter; tailFilter = newFilter; } else { tailFilter.next = newFilter; tailFilter = newFilter; } }
java
public void addFilter(final Filter newFilter) { if (headFilter == null) { headFilter = newFilter; tailFilter = newFilter; } else { tailFilter.next = newFilter; tailFilter = newFilter; } }
[ "public", "void", "addFilter", "(", "final", "Filter", "newFilter", ")", "{", "if", "(", "headFilter", "==", "null", ")", "{", "headFilter", "=", "newFilter", ";", "tailFilter", "=", "newFilter", ";", "}", "else", "{", "tailFilter", ".", "next", "=", "ne...
Add a filter to end of the filter list. @param newFilter filter to add to end of list.
[ "Add", "a", "filter", "to", "end", "of", "the", "filter", "list", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/rolling/FilterBasedTriggeringPolicy.java#L100-L108
104,264
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/pattern/ExtrasPatternParser.java
ExtrasPatternParser.extractConverter
private static int extractConverter( char lastChar, final String pattern, int i, final StringBuffer convBuf, final StringBuffer currentLiteral) { convBuf.setLength(0); // When this method is called, lastChar points to the first character of the // conversion word. For example: // For "%hello" ...
java
private static int extractConverter( char lastChar, final String pattern, int i, final StringBuffer convBuf, final StringBuffer currentLiteral) { convBuf.setLength(0); // When this method is called, lastChar points to the first character of the // conversion word. For example: // For "%hello" ...
[ "private", "static", "int", "extractConverter", "(", "char", "lastChar", ",", "final", "String", "pattern", ",", "int", "i", ",", "final", "StringBuffer", "convBuf", ",", "final", "StringBuffer", "currentLiteral", ")", "{", "convBuf", ".", "setLength", "(", "0...
Extract the converter identifier found at position i. After this function returns, the variable i will point to the first char after the end of the converter identifier. If i points to a char which is not a character acceptable at the start of a unicode identifier, the value null is returned. @param lastChar last pr...
[ "Extract", "the", "converter", "identifier", "found", "at", "position", "i", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/pattern/ExtrasPatternParser.java#L184-L211
104,265
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/pattern/ExtrasPatternParser.java
ExtrasPatternParser.extractOptions
private static int extractOptions(String pattern, int i, List options) { while ((i < pattern.length()) && (pattern.charAt(i) == '{')) { int end = pattern.indexOf('}', i); if (end == -1) { break; } String r = pattern.substring(i + 1, end); options.add(r); i = end + 1; ...
java
private static int extractOptions(String pattern, int i, List options) { while ((i < pattern.length()) && (pattern.charAt(i) == '{')) { int end = pattern.indexOf('}', i); if (end == -1) { break; } String r = pattern.substring(i + 1, end); options.add(r); i = end + 1; ...
[ "private", "static", "int", "extractOptions", "(", "String", "pattern", ",", "int", "i", ",", "List", "options", ")", "{", "while", "(", "(", "i", "<", "pattern", ".", "length", "(", ")", ")", "&&", "(", "pattern", ".", "charAt", "(", "i", ")", "==...
Extract options. @param pattern conversion pattern. @param i start of options. @param options array to receive extracted options @return position in pattern after options.
[ "Extract", "options", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/pattern/ExtrasPatternParser.java#L220-L234
104,266
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/pattern/ExtrasPatternParser.java
ExtrasPatternParser.createConverter
private static PatternConverter createConverter( final String converterId, final StringBuffer currentLiteral, final Map converterRegistry, final Map rules, final List options) { String converterName = converterId; Object converterObj = null; for (int i = converterId.length(); (i > 0) && (converterO...
java
private static PatternConverter createConverter( final String converterId, final StringBuffer currentLiteral, final Map converterRegistry, final Map rules, final List options) { String converterName = converterId; Object converterObj = null; for (int i = converterId.length(); (i > 0) && (converterO...
[ "private", "static", "PatternConverter", "createConverter", "(", "final", "String", "converterId", ",", "final", "StringBuffer", "currentLiteral", ",", "final", "Map", "converterRegistry", ",", "final", "Map", "rules", ",", "final", "List", "options", ")", "{", "S...
Creates a new PatternConverter. @param converterId converterId. @param currentLiteral literal to be used if converter is unrecognized or following converter if converterId contains extra characters. @param converterRegistry map of user-supported pattern converters keyed by format specifier, may be null. @param rules ...
[ "Creates", "a", "new", "PatternConverter", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/pattern/ExtrasPatternParser.java#L439-L531
104,267
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/pattern/ExtrasPatternParser.java
ExtrasPatternParser.finalizeConverter
private static int finalizeConverter( char c, String pattern, int i, final StringBuffer currentLiteral, final ExtrasFormattingInfo formattingInfo, final Map converterRegistry, final Map rules, final List patternConverters, final List formattingInfos) { StringBuffer convBuf = new StringBuffer(); ...
java
private static int finalizeConverter( char c, String pattern, int i, final StringBuffer currentLiteral, final ExtrasFormattingInfo formattingInfo, final Map converterRegistry, final Map rules, final List patternConverters, final List formattingInfos) { StringBuffer convBuf = new StringBuffer(); ...
[ "private", "static", "int", "finalizeConverter", "(", "char", "c", ",", "String", "pattern", ",", "int", "i", ",", "final", "StringBuffer", "currentLiteral", ",", "final", "ExtrasFormattingInfo", "formattingInfo", ",", "final", "Map", "converterRegistry", ",", "fi...
Processes a format specifier sequence. @param c initial character of format specifier. @param pattern conversion pattern @param i current position in conversion pattern. @param currentLiteral current literal. @param formattingInfo current field specifier. @param converterRegistry map of user-provided pattern converter...
[ "Processes", "a", "format", "specifier", "sequence", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/pattern/ExtrasPatternParser.java#L547-L598
104,268
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/message/StructuredDataId.java
StructuredDataId.makeId
public StructuredDataId makeId(final StructuredDataId id) { if (id == null) { return this; } return makeId(id.getName(), id.getEnterpriseNumber()); }
java
public StructuredDataId makeId(final StructuredDataId id) { if (id == null) { return this; } return makeId(id.getName(), id.getEnterpriseNumber()); }
[ "public", "StructuredDataId", "makeId", "(", "final", "StructuredDataId", "id", ")", "{", "if", "(", "id", "==", "null", ")", "{", "return", "this", ";", "}", "return", "makeId", "(", "id", ".", "getName", "(", ")", ",", "id", ".", "getEnterpriseNumber",...
Creates an id using another id to supply default values. @param id The original StructuredDataId. @return the new StructuredDataId.
[ "Creates", "an", "id", "using", "another", "id", "to", "supply", "default", "values", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/message/StructuredDataId.java#L170-L175
104,269
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/message/StructuredDataId.java
StructuredDataId.makeId
public StructuredDataId makeId(final String defaultId, final int anEnterpriseNumber) { String id; String[] req; String[] opt; if (anEnterpriseNumber <= 0) { return this; } if (this.name != null) { id = this.name; req = this.required; ...
java
public StructuredDataId makeId(final String defaultId, final int anEnterpriseNumber) { String id; String[] req; String[] opt; if (anEnterpriseNumber <= 0) { return this; } if (this.name != null) { id = this.name; req = this.required; ...
[ "public", "StructuredDataId", "makeId", "(", "final", "String", "defaultId", ",", "final", "int", "anEnterpriseNumber", ")", "{", "String", "id", ";", "String", "[", "]", "req", ";", "String", "[", "]", "opt", ";", "if", "(", "anEnterpriseNumber", "<=", "0...
Creates an id based on the current id. @param defaultId The default id to use if this StructuredDataId doesn't have a name. @param anEnterpriseNumber The enterprise number. @return a StructuredDataId.
[ "Creates", "an", "id", "based", "on", "the", "current", "id", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/message/StructuredDataId.java#L184-L202
104,270
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/message/StructuredDataMessage.java
StructuredDataMessage.getFormats
@Override public String[] getFormats() { final String[] formats = new String[Format.values().length]; int i = 0; for (final Format format : Format.values()) { formats[i++] = format.name(); } return formats; }
java
@Override public String[] getFormats() { final String[] formats = new String[Format.values().length]; int i = 0; for (final Format format : Format.values()) { formats[i++] = format.name(); } return formats; }
[ "@", "Override", "public", "String", "[", "]", "getFormats", "(", ")", "{", "final", "String", "[", "]", "formats", "=", "new", "String", "[", "Format", ".", "values", "(", ")", ".", "length", "]", ";", "int", "i", "=", "0", ";", "for", "(", "fin...
Returns the supported formats. @return An array of the supported format names.
[ "Returns", "the", "supported", "formats", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/message/StructuredDataMessage.java#L202-L210
104,271
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/message/ThreadDumpMessage.java
ThreadDumpMessage.getFormattedMessage
@Override public String getFormattedMessage() { if (formattedMessage != null) { return formattedMessage; } final StringBuilder sb = new StringBuilder(255); formatTo(sb); return sb.toString(); }
java
@Override public String getFormattedMessage() { if (formattedMessage != null) { return formattedMessage; } final StringBuilder sb = new StringBuilder(255); formatTo(sb); return sb.toString(); }
[ "@", "Override", "public", "String", "getFormattedMessage", "(", ")", "{", "if", "(", "formattedMessage", "!=", "null", ")", "{", "return", "formattedMessage", ";", "}", "final", "StringBuilder", "sb", "=", "new", "StringBuilder", "(", "255", ")", ";", "form...
Returns the ThreadDump in printable format. @return the ThreadDump suitable for logging.
[ "Returns", "the", "ThreadDump", "in", "printable", "format", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/message/ThreadDumpMessage.java#L90-L98
104,272
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/message/ReusableParameterizedMessage.java
ReusableParameterizedMessage.swapParameters
@Override public Object[] swapParameters(final Object[] emptyReplacement) { Object[] result; if (varargs == null) { result = params; if (emptyReplacement.length >= MAX_PARMS) { params = emptyReplacement; } else { // Bad replacement!...
java
@Override public Object[] swapParameters(final Object[] emptyReplacement) { Object[] result; if (varargs == null) { result = params; if (emptyReplacement.length >= MAX_PARMS) { params = emptyReplacement; } else { // Bad replacement!...
[ "@", "Override", "public", "Object", "[", "]", "swapParameters", "(", "final", "Object", "[", "]", "emptyReplacement", ")", "{", "Object", "[", "]", "result", ";", "if", "(", "varargs", "==", "null", ")", "{", "result", "=", "params", ";", "if", "(", ...
see interface javadoc
[ "see", "interface", "javadoc" ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/message/ReusableParameterizedMessage.java#L64-L99
104,273
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/DailyZipRollingFileAppender.java
DailyZipRollingFileAppender.rollOver
void rollOver() throws IOException { // If compression is enabled we start a separated thread if (getCompressBackups().equalsIgnoreCase("YES") || getCompressBackups().equalsIgnoreCase("TRUE")) { File file = new File(fileName); Thread fileCompressor = new Thread(new CompressFile(file)); fileComp...
java
void rollOver() throws IOException { // If compression is enabled we start a separated thread if (getCompressBackups().equalsIgnoreCase("YES") || getCompressBackups().equalsIgnoreCase("TRUE")) { File file = new File(fileName); Thread fileCompressor = new Thread(new CompressFile(file)); fileComp...
[ "void", "rollOver", "(", ")", "throws", "IOException", "{", "// If compression is enabled we start a separated thread\r", "if", "(", "getCompressBackups", "(", ")", ".", "equalsIgnoreCase", "(", "\"YES\"", ")", "||", "getCompressBackups", "(", ")", ".", "equalsIgnoreCas...
Rollover the current file to a new file.
[ "Rollover", "the", "current", "file", "to", "a", "new", "file", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/DailyZipRollingFileAppender.java#L498-L523
104,274
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/DailyZipRollingFileAppender.java
DailyZipRollingFileAppender.subAppend
protected void subAppend(LoggingEvent event) { long n = event.timeStamp; if (n >= nextCheck) { try { now.setTime(n); cleanupAndRollOver(); } catch (IOException ioe) { if (ioe instanceof InterruptedIOException) { Thread.currentThread().interrupt(); } LogLog.error("rollOver() ...
java
protected void subAppend(LoggingEvent event) { long n = event.timeStamp; if (n >= nextCheck) { try { now.setTime(n); cleanupAndRollOver(); } catch (IOException ioe) { if (ioe instanceof InterruptedIOException) { Thread.currentThread().interrupt(); } LogLog.error("rollOver() ...
[ "protected", "void", "subAppend", "(", "LoggingEvent", "event", ")", "{", "long", "n", "=", "event", ".", "timeStamp", ";", "if", "(", "n", ">=", "nextCheck", ")", "{", "try", "{", "now", ".", "setTime", "(", "n", ")", ";", "cleanupAndRollOver", "(", ...
This method differentiates DailyRollingFileAppender from its super class. <p> Before actually logging, this method will check whether it is time to do a rollover. If it is, it will schedule the next rollover time and then rollover.
[ "This", "method", "differentiates", "DailyRollingFileAppender", "from", "its", "super", "class", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/DailyZipRollingFileAppender.java#L549-L563
104,275
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/message/BasicThreadInformation.java
BasicThreadInformation.printThreadInfo
@Override public void printThreadInfo(final StringBuilder sb) { StringBuilders.appendDqValue(sb, name).append(Chars.SPACE); if (isDaemon) { sb.append("daemon "); } sb.append("prio=").append(priority).append(" tid=").append(id).append(' '); if (threadGroupName != n...
java
@Override public void printThreadInfo(final StringBuilder sb) { StringBuilders.appendDqValue(sb, name).append(Chars.SPACE); if (isDaemon) { sb.append("daemon "); } sb.append("prio=").append(priority).append(" tid=").append(id).append(' '); if (threadGroupName != n...
[ "@", "Override", "public", "void", "printThreadInfo", "(", "final", "StringBuilder", "sb", ")", "{", "StringBuilders", ".", "appendDqValue", "(", "sb", ",", "name", ")", ".", "append", "(", "Chars", ".", "SPACE", ")", ";", "if", "(", "isDaemon", ")", "{"...
Print the thread information. @param sb The StringBuilder.
[ "Print", "the", "thread", "information", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/message/BasicThreadInformation.java#L85-L97
104,276
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/message/BasicThreadInformation.java
BasicThreadInformation.printStack
@Override public void printStack(final StringBuilder sb, final StackTraceElement[] trace) { for (final StackTraceElement element : trace) { sb.append("\tat ").append(element).append('\n'); } }
java
@Override public void printStack(final StringBuilder sb, final StackTraceElement[] trace) { for (final StackTraceElement element : trace) { sb.append("\tat ").append(element).append('\n'); } }
[ "@", "Override", "public", "void", "printStack", "(", "final", "StringBuilder", "sb", ",", "final", "StackTraceElement", "[", "]", "trace", ")", "{", "for", "(", "final", "StackTraceElement", "element", ":", "trace", ")", "{", "sb", ".", "append", "(", "\"...
Format the StackTraceElements. @param sb The StringBuilder. @param trace The stack trace element array to format.
[ "Format", "the", "StackTraceElements", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/message/BasicThreadInformation.java#L104-L109
104,277
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/receivers/db/DBReceiverJob.java
DBReceiverJob.getProperties
void getProperties(Connection connection, long id, LoggingEvent event) throws SQLException { PreparedStatement statement = connection.prepareStatement(sqlProperties); try { statement.setLong(1, id); ResultSet rs = statement.executeQuery(); while (rs.next()) { String key = rs.ge...
java
void getProperties(Connection connection, long id, LoggingEvent event) throws SQLException { PreparedStatement statement = connection.prepareStatement(sqlProperties); try { statement.setLong(1, id); ResultSet rs = statement.executeQuery(); while (rs.next()) { String key = rs.ge...
[ "void", "getProperties", "(", "Connection", "connection", ",", "long", "id", ",", "LoggingEvent", "event", ")", "throws", "SQLException", "{", "PreparedStatement", "statement", "=", "connection", ".", "prepareStatement", "(", "sqlProperties", ")", ";", "try", "{",...
Retrieve the event properties from the logging_event_property table. @param connection @param id @param event @throws SQLException
[ "Retrieve", "the", "event", "properties", "from", "the", "logging_event_property", "table", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/receivers/db/DBReceiverJob.java#L172-L188
104,278
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/receivers/db/DBReceiverJob.java
DBReceiverJob.getException
ThrowableInformation getException(Connection connection, long id) throws SQLException { PreparedStatement statement = null; try { statement = connection.prepareStatement(sqlException); statement.setLong(1, id); ResultSet rs = statement.executeQuery(); Vector v = new Vector(); ...
java
ThrowableInformation getException(Connection connection, long id) throws SQLException { PreparedStatement statement = null; try { statement = connection.prepareStatement(sqlException); statement.setLong(1, id); ResultSet rs = statement.executeQuery(); Vector v = new Vector(); ...
[ "ThrowableInformation", "getException", "(", "Connection", "connection", ",", "long", "id", ")", "throws", "SQLException", "{", "PreparedStatement", "statement", "=", "null", ";", "try", "{", "statement", "=", "connection", ".", "prepareStatement", "(", "sqlExceptio...
Retrieve the exception string representation from the logging_event_exception table. @param connection @param id @throws SQLException
[ "Retrieve", "the", "exception", "string", "representation", "from", "the", "logging_event_exception", "table", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/receivers/db/DBReceiverJob.java#L198-L227
104,279
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/log4j/Priority.java
Priority.getAllPossiblePriorities
public static Priority[] getAllPossiblePriorities() { return new Priority[]{ Priority.FATAL, Priority.ERROR, Level.WARN, Priority.INFO, Priority.DEBUG, Level.TRACE }; }
java
public static Priority[] getAllPossiblePriorities() { return new Priority[]{ Priority.FATAL, Priority.ERROR, Level.WARN, Priority.INFO, Priority.DEBUG, Level.TRACE }; }
[ "public", "static", "Priority", "[", "]", "getAllPossiblePriorities", "(", ")", "{", "return", "new", "Priority", "[", "]", "{", "Priority", ".", "FATAL", ",", "Priority", ".", "ERROR", ",", "Level", ".", "WARN", ",", "Priority", ".", "INFO", ",", "Prior...
Return all possible priorities as an array of Level objects in descending order. @deprecated This method will be removed with no replacement. @return TODO
[ "Return", "all", "possible", "priorities", "as", "an", "array", "of", "Level", "objects", "in", "descending", "order", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/log4j/Priority.java#L140-L146
104,280
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/LogManager.java
LogManager.shutdown
public static void shutdown(final LoggerContext context) { if (context != null && context instanceof Terminable) { ((Terminable) context).terminate(); } }
java
public static void shutdown(final LoggerContext context) { if (context != null && context instanceof Terminable) { ((Terminable) context).terminate(); } }
[ "public", "static", "void", "shutdown", "(", "final", "LoggerContext", "context", ")", "{", "if", "(", "context", "!=", "null", "&&", "context", "instanceof", "Terminable", ")", "{", "(", "(", "Terminable", ")", "context", ")", ".", "terminate", "(", ")", ...
Shutdown the logging system if the logging system supports it. This call is synchronous and will block until shut down is complete. This may include flushing pending log events over network connections. @param context the LoggerContext. @since 2.6
[ "Shutdown", "the", "logging", "system", "if", "the", "logging", "system", "supports", "it", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/LogManager.java#L319-L323
104,281
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/LogManager.java
LogManager.getLogger
public static Logger getLogger(final Class<?> clazz) { final Class<?> cls = callerClass(clazz); return getContext(cls.getClassLoader(), false).getLogger(cls.getCanonicalName()); }
java
public static Logger getLogger(final Class<?> clazz) { final Class<?> cls = callerClass(clazz); return getContext(cls.getClassLoader(), false).getLogger(cls.getCanonicalName()); }
[ "public", "static", "Logger", "getLogger", "(", "final", "Class", "<", "?", ">", "clazz", ")", "{", "final", "Class", "<", "?", ">", "cls", "=", "callerClass", "(", "clazz", ")", ";", "return", "getContext", "(", "cls", ".", "getClassLoader", "(", ")",...
Returns a Logger using the fully qualified name of the Class as the Logger name. @param clazz The Class whose name should be used as the Logger name. If null it will default to the calling class. @return The Logger. @throws UnsupportedOperationException if {@code clazz} is {@code null} and the calling class cannot be ...
[ "Returns", "a", "Logger", "using", "the", "fully", "qualified", "name", "of", "the", "Class", "as", "the", "Logger", "name", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/LogManager.java#L491-L494
104,282
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/LogManager.java
LogManager.getLogger
public static Logger getLogger(final Object value) { return getLogger(value != null ? value.getClass() : StackLocatorUtil.getCallerClass(2)); }
java
public static Logger getLogger(final Object value) { return getLogger(value != null ? value.getClass() : StackLocatorUtil.getCallerClass(2)); }
[ "public", "static", "Logger", "getLogger", "(", "final", "Object", "value", ")", "{", "return", "getLogger", "(", "value", "!=", "null", "?", "value", ".", "getClass", "(", ")", ":", "StackLocatorUtil", ".", "getCallerClass", "(", "2", ")", ")", ";", "}"...
Returns a Logger using the fully qualified class name of the value as the Logger name. @param value The value whose class name should be used as the Logger name. If null the name of the calling class will be used as the logger name. @return The Logger. @throws UnsupportedOperationException if {@code value} is {@code n...
[ "Returns", "a", "Logger", "using", "the", "fully", "qualified", "class", "name", "of", "the", "value", "as", "the", "Logger", "name", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/LogManager.java#L533-L535
104,283
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/config/PaxPropertySetter.java
PaxPropertySetter.setProperty
public void setProperty(String name, String value) { if (value == null) return; name = Introspector.decapitalize(name); PropertyDescriptor prop = getPropertyDescriptor(name); //LogLog.debug("---------Key: "+name+", type="+prop.getPropertyType()); if (prop == null) { LogLog.warn("No such p...
java
public void setProperty(String name, String value) { if (value == null) return; name = Introspector.decapitalize(name); PropertyDescriptor prop = getPropertyDescriptor(name); //LogLog.debug("---------Key: "+name+", type="+prop.getPropertyType()); if (prop == null) { LogLog.warn("No such p...
[ "public", "void", "setProperty", "(", "String", "name", ",", "String", "value", ")", "{", "if", "(", "value", "==", "null", ")", "return", ";", "name", "=", "Introspector", ".", "decapitalize", "(", "name", ")", ";", "PropertyDescriptor", "prop", "=", "g...
Set a property on this PaxPropertySetter's Object. If successful, this method will invoke a setter method on the underlying Object. The setter is the one for the specified property name and the value is determined partly from the setter argument type and partly from the value specified in the call to this method. <p>I...
[ "Set", "a", "property", "on", "this", "PaxPropertySetter", "s", "Object", ".", "If", "successful", "this", "method", "will", "invoke", "a", "setter", "method", "on", "the", "underlying", "Object", ".", "The", "setter", "is", "the", "one", "for", "the", "sp...
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/config/PaxPropertySetter.java#L255-L275
104,284
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/util/PropertiesUtil.java
PropertiesUtil.loadClose
static Properties loadClose(final InputStream in, final Object source) { final Properties props = new Properties(); if (null != in) { try { props.load(in); } catch (final IOException e) { LowLevelLogUtil.logException("Unable to read " + source, e);...
java
static Properties loadClose(final InputStream in, final Object source) { final Properties props = new Properties(); if (null != in) { try { props.load(in); } catch (final IOException e) { LowLevelLogUtil.logException("Unable to read " + source, e);...
[ "static", "Properties", "loadClose", "(", "final", "InputStream", "in", ",", "final", "Object", "source", ")", "{", "final", "Properties", "props", "=", "new", "Properties", "(", ")", ";", "if", "(", "null", "!=", "in", ")", "{", "try", "{", "props", "...
Loads and closes the given property input stream. If an error occurs, log to the status logger. @param in a property input stream. @param source a source object describing the source, like a resource string or a URL. @return a new Properties object
[ "Loads", "and", "closes", "the", "given", "property", "input", "stream", ".", "If", "an", "error", "occurs", "log", "to", "the", "status", "logger", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/util/PropertiesUtil.java#L77-L93
104,285
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/util/PropertiesUtil.java
PropertiesUtil.getCharsetProperty
public Charset getCharsetProperty(final String name, final Charset defaultValue) { final String prop = getStringProperty(name); try { return prop == null ? defaultValue : Charset.forName(prop); } catch (UnsupportedCharsetException e) { LowLevelLogUtil.logException("Unable...
java
public Charset getCharsetProperty(final String name, final Charset defaultValue) { final String prop = getStringProperty(name); try { return prop == null ? defaultValue : Charset.forName(prop); } catch (UnsupportedCharsetException e) { LowLevelLogUtil.logException("Unable...
[ "public", "Charset", "getCharsetProperty", "(", "final", "String", "name", ",", "final", "Charset", "defaultValue", ")", "{", "final", "String", "prop", "=", "getStringProperty", "(", "name", ")", ";", "try", "{", "return", "prop", "==", "null", "?", "defaul...
Gets the named property as a Charset value. @param name the name of the property to look up @param defaultValue the default value to use if the property is undefined @return the Charset value of the property or {@code defaultValue} if undefined.
[ "Gets", "the", "named", "property", "as", "a", "Charset", "value", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/util/PropertiesUtil.java#L169-L177
104,286
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/util/PropertiesUtil.java
PropertiesUtil.getDoubleProperty
public double getDoubleProperty(final String name, final double defaultValue) { final String prop = getStringProperty(name); if (prop != null) { try { return Double.parseDouble(prop); } catch (final Exception ignored) { return defaultValue; ...
java
public double getDoubleProperty(final String name, final double defaultValue) { final String prop = getStringProperty(name); if (prop != null) { try { return Double.parseDouble(prop); } catch (final Exception ignored) { return defaultValue; ...
[ "public", "double", "getDoubleProperty", "(", "final", "String", "name", ",", "final", "double", "defaultValue", ")", "{", "final", "String", "prop", "=", "getStringProperty", "(", "name", ")", ";", "if", "(", "prop", "!=", "null", ")", "{", "try", "{", ...
Gets the named property as a double. @param name the name of the property to look up @param defaultValue the default value to use if the property is undefined @return the parsed double value of the property or {@code defaultValue} if it was undefined or could not be parsed.
[ "Gets", "the", "named", "property", "as", "a", "double", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/util/PropertiesUtil.java#L186-L196
104,287
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/util/PropertiesUtil.java
PropertiesUtil.getIntegerProperty
public int getIntegerProperty(final String name, final int defaultValue) { final String prop = getStringProperty(name); if (prop != null) { try { return Integer.parseInt(prop); } catch (final Exception ignored) { return defaultValue; } ...
java
public int getIntegerProperty(final String name, final int defaultValue) { final String prop = getStringProperty(name); if (prop != null) { try { return Integer.parseInt(prop); } catch (final Exception ignored) { return defaultValue; } ...
[ "public", "int", "getIntegerProperty", "(", "final", "String", "name", ",", "final", "int", "defaultValue", ")", "{", "final", "String", "prop", "=", "getStringProperty", "(", "name", ")", ";", "if", "(", "prop", "!=", "null", ")", "{", "try", "{", "retu...
Gets the named property as an integer. @param name the name of the property to look up @param defaultValue the default value to use if the property is undefined @return the parsed integer value of the property or {@code defaultValue} if it was undefined or could not be parsed.
[ "Gets", "the", "named", "property", "as", "an", "integer", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/util/PropertiesUtil.java#L206-L216
104,288
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/util/PropertiesUtil.java
PropertiesUtil.getLongProperty
public long getLongProperty(final String name, final long defaultValue) { final String prop = getStringProperty(name); if (prop != null) { try { return Long.parseLong(prop); } catch (final Exception ignored) { return defaultValue; } ...
java
public long getLongProperty(final String name, final long defaultValue) { final String prop = getStringProperty(name); if (prop != null) { try { return Long.parseLong(prop); } catch (final Exception ignored) { return defaultValue; } ...
[ "public", "long", "getLongProperty", "(", "final", "String", "name", ",", "final", "long", "defaultValue", ")", "{", "final", "String", "prop", "=", "getStringProperty", "(", "name", ")", ";", "if", "(", "prop", "!=", "null", ")", "{", "try", "{", "retur...
Gets the named property as a long. @param name the name of the property to look up @param defaultValue the default value to use if the property is undefined @return the parsed long value of the property or {@code defaultValue} if it was undefined or could not be parsed.
[ "Gets", "the", "named", "property", "as", "a", "long", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/util/PropertiesUtil.java#L225-L235
104,289
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/util/PropertiesUtil.java
PropertiesUtil.getStringProperty
public String getStringProperty(final String name) { String prop = null; try { prop = System.getProperty(name); } catch (final SecurityException ignored) { // Ignore } return prop == null ? props.getProperty(name) : prop; }
java
public String getStringProperty(final String name) { String prop = null; try { prop = System.getProperty(name); } catch (final SecurityException ignored) { // Ignore } return prop == null ? props.getProperty(name) : prop; }
[ "public", "String", "getStringProperty", "(", "final", "String", "name", ")", "{", "String", "prop", "=", "null", ";", "try", "{", "prop", "=", "System", ".", "getProperty", "(", "name", ")", ";", "}", "catch", "(", "final", "SecurityException", "ignored",...
Gets the named property as a String. @param name the name of the property to look up @return the String value of the property or {@code null} if undefined.
[ "Gets", "the", "named", "property", "as", "a", "String", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/util/PropertiesUtil.java#L243-L251
104,290
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/util/PropertiesUtil.java
PropertiesUtil.getSystemProperties
public static Properties getSystemProperties() { try { return new Properties(System.getProperties()); } catch (final SecurityException ex) { LowLevelLogUtil.logException("Unable to access system properties.", ex); // Sandboxed - can't read System Properties ...
java
public static Properties getSystemProperties() { try { return new Properties(System.getProperties()); } catch (final SecurityException ex) { LowLevelLogUtil.logException("Unable to access system properties.", ex); // Sandboxed - can't read System Properties ...
[ "public", "static", "Properties", "getSystemProperties", "(", ")", "{", "try", "{", "return", "new", "Properties", "(", "System", ".", "getProperties", "(", ")", ")", ";", "}", "catch", "(", "final", "SecurityException", "ex", ")", "{", "LowLevelLogUtil", "....
Return the system properties or an empty Properties object if an error occurs. @return The system properties.
[ "Return", "the", "system", "properties", "or", "an", "empty", "Properties", "object", "if", "an", "error", "occurs", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/util/PropertiesUtil.java#L270-L278
104,291
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/util/PropertiesUtil.java
PropertiesUtil.extractSubset
public static Properties extractSubset(final Properties properties, final String prefix) { final Properties subset = new Properties(); if (prefix == null || prefix.length() == 0) { return subset; } final String prefixToMatch = prefix.charAt(prefix.length() - 1) != '.' ? pre...
java
public static Properties extractSubset(final Properties properties, final String prefix) { final Properties subset = new Properties(); if (prefix == null || prefix.length() == 0) { return subset; } final String prefixToMatch = prefix.charAt(prefix.length() - 1) != '.' ? pre...
[ "public", "static", "Properties", "extractSubset", "(", "final", "Properties", "properties", ",", "final", "String", "prefix", ")", "{", "final", "Properties", "subset", "=", "new", "Properties", "(", ")", ";", "if", "(", "prefix", "==", "null", "||", "prefi...
Extracts properties that start with or are equals to the specific prefix and returns them in a new Properties object with the prefix removed. @param properties The Properties to evaluate. @param prefix The prefix to extract. @return The subset of properties.
[ "Extracts", "properties", "that", "start", "with", "or", "are", "equals", "to", "the", "specific", "prefix", "and", "returns", "them", "in", "a", "new", "Properties", "object", "with", "the", "prefix", "removed", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/util/PropertiesUtil.java#L288-L310
104,292
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/apache/logging/log4j/util/PropertiesUtil.java
PropertiesUtil.partitionOnCommonPrefixes
public static Map<String, Properties> partitionOnCommonPrefixes(final Properties properties) { final Map<String, Properties> parts = new ConcurrentHashMap<>(); for (final String key : properties.stringPropertyNames()) { final String prefix = key.substring(0, key.indexOf('.')); if...
java
public static Map<String, Properties> partitionOnCommonPrefixes(final Properties properties) { final Map<String, Properties> parts = new ConcurrentHashMap<>(); for (final String key : properties.stringPropertyNames()) { final String prefix = key.substring(0, key.indexOf('.')); if...
[ "public", "static", "Map", "<", "String", ",", "Properties", ">", "partitionOnCommonPrefixes", "(", "final", "Properties", "properties", ")", "{", "final", "Map", "<", "String", ",", "Properties", ">", "parts", "=", "new", "ConcurrentHashMap", "<>", "(", ")", ...
Partitions a properties map based on common key prefixes up to the first period. @param properties properties to partition @return the partitioned properties where each key is the common prefix (minus the period) and the values are new property maps without the prefix and period in the key @since 2.6
[ "Partitions", "a", "properties", "map", "based", "on", "common", "key", "prefixes", "up", "to", "the", "first", "period", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/apache/logging/log4j/util/PropertiesUtil.java#L320-L330
104,293
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/spi/LoggingEventFieldResolver.java
LoggingEventFieldResolver.applyFields
public String applyFields(final String replaceText, final LoggingEvent event) { if (replaceText == null) { return null; } InFixToPostFix.CustomTokenizer tokenizer = new InFixToPostFix.CustomTokenizer(replaceText); StringBuffer result = new StringBuffer(); ...
java
public String applyFields(final String replaceText, final LoggingEvent event) { if (replaceText == null) { return null; } InFixToPostFix.CustomTokenizer tokenizer = new InFixToPostFix.CustomTokenizer(replaceText); StringBuffer result = new StringBuffer(); ...
[ "public", "String", "applyFields", "(", "final", "String", "replaceText", ",", "final", "LoggingEvent", "event", ")", "{", "if", "(", "replaceText", "==", "null", ")", "{", "return", "null", ";", "}", "InFixToPostFix", ".", "CustomTokenizer", "tokenizer", "=",...
Apply fields. @param replaceText replacement text. @param event logging event. @return evaluted expression
[ "Apply", "fields", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/spi/LoggingEventFieldResolver.java#L156-L178
104,294
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/spi/LoggingEventFieldResolver.java
LoggingEventFieldResolver.isField
public boolean isField(final String fieldName) { if (fieldName != null) { return (KEYWORD_LIST.contains( fieldName.toUpperCase(Locale.US)) || fieldName.toUpperCase().startsWith(PROP_FIELD)); } return false; }
java
public boolean isField(final String fieldName) { if (fieldName != null) { return (KEYWORD_LIST.contains( fieldName.toUpperCase(Locale.US)) || fieldName.toUpperCase().startsWith(PROP_FIELD)); } return false; }
[ "public", "boolean", "isField", "(", "final", "String", "fieldName", ")", "{", "if", "(", "fieldName", "!=", "null", ")", "{", "return", "(", "KEYWORD_LIST", ".", "contains", "(", "fieldName", ".", "toUpperCase", "(", "Locale", ".", "US", ")", ")", "||",...
Determines if specified string is a recognized field. @param fieldName field name @return true if recognized field.
[ "Determines", "if", "specified", "string", "is", "a", "recognized", "field", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/spi/LoggingEventFieldResolver.java#L193-L200
104,295
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/spi/LoggingEventFieldResolver.java
LoggingEventFieldResolver.getValue
public Object getValue(final String fieldName, final LoggingEvent event) { String upperField = fieldName.toUpperCase(Locale.US); if (LOGGER_FIELD.equals(upperField)) { return event.getLoggerName(); } else if (LEVEL_FIELD.equals(upperField)) { return event.getLevel(); ...
java
public Object getValue(final String fieldName, final LoggingEvent event) { String upperField = fieldName.toUpperCase(Locale.US); if (LOGGER_FIELD.equals(upperField)) { return event.getLoggerName(); } else if (LEVEL_FIELD.equals(upperField)) { return event.getLevel(); ...
[ "public", "Object", "getValue", "(", "final", "String", "fieldName", ",", "final", "LoggingEvent", "event", ")", "{", "String", "upperField", "=", "fieldName", ".", "toUpperCase", "(", "Locale", ".", "US", ")", ";", "if", "(", "LOGGER_FIELD", ".", "equals", ...
Get value of field. @param fieldName field @param event event @return value of field
[ "Get", "value", "of", "field", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/spi/LoggingEventFieldResolver.java#L208-L261
104,296
ops4j/org.ops4j.pax.logging
pax-logging-service/src/main/java/org/apache/log4j/spi/LoggingEventFieldResolver.java
LoggingEventFieldResolver.getExceptionMessage
private static String getExceptionMessage(final String[] exception) { StringBuffer buff = new StringBuffer(); for (int i = 0; i < exception.length; i++) { buff.append(exception[i]); } return buff.toString(); }
java
private static String getExceptionMessage(final String[] exception) { StringBuffer buff = new StringBuffer(); for (int i = 0; i < exception.length; i++) { buff.append(exception[i]); } return buff.toString(); }
[ "private", "static", "String", "getExceptionMessage", "(", "final", "String", "[", "]", "exception", ")", "{", "StringBuffer", "buff", "=", "new", "StringBuffer", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "exception", ".", "length",...
Get message from throwable representation. @param exception exception @return message
[ "Get", "message", "from", "throwable", "representation", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-service/src/main/java/org/apache/log4j/spi/LoggingEventFieldResolver.java#L268-L274
104,297
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/ops4j/pax/logging/slf4j/Slf4jLogger.java
Slf4jLogger.trace
public void trace( String format, Object arg ) { if( m_delegate.isTraceEnabled() ) { FormattingTuple tuple = MessageFormatter.format( format, arg ); m_delegate.trace( tuple.getMessage(), tuple.getThrowable() ); } }
java
public void trace( String format, Object arg ) { if( m_delegate.isTraceEnabled() ) { FormattingTuple tuple = MessageFormatter.format( format, arg ); m_delegate.trace( tuple.getMessage(), tuple.getThrowable() ); } }
[ "public", "void", "trace", "(", "String", "format", ",", "Object", "arg", ")", "{", "if", "(", "m_delegate", ".", "isTraceEnabled", "(", ")", ")", "{", "FormattingTuple", "tuple", "=", "MessageFormatter", ".", "format", "(", "format", ",", "arg", ")", ";...
Log a message at the TRACE level according to the specified format and argument. <p>This form avoids superfluous object creation when the logger is disabled for the TRACE level. </p> @param format the format string @param arg the argument
[ "Log", "a", "message", "at", "the", "TRACE", "level", "according", "to", "the", "specified", "format", "and", "argument", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/ops4j/pax/logging/slf4j/Slf4jLogger.java#L86-L93
104,298
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/ops4j/pax/logging/slf4j/Slf4jLogger.java
Slf4jLogger.trace
public void trace( Marker marker, String msg ) { if( m_delegate.isTraceEnabled() ) { setMDCMarker( marker ); m_delegate.trace( msg, null ); resetMDCMarker(); } }
java
public void trace( Marker marker, String msg ) { if( m_delegate.isTraceEnabled() ) { setMDCMarker( marker ); m_delegate.trace( msg, null ); resetMDCMarker(); } }
[ "public", "void", "trace", "(", "Marker", "marker", ",", "String", "msg", ")", "{", "if", "(", "m_delegate", ".", "isTraceEnabled", "(", ")", ")", "{", "setMDCMarker", "(", "marker", ")", ";", "m_delegate", ".", "trace", "(", "msg", ",", "null", ")", ...
Log a message with the specific Marker at the TRACE level. @param marker the marker data specific to this log statement @param msg the message string to be logged
[ "Log", "a", "message", "with", "the", "specific", "Marker", "at", "the", "TRACE", "level", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/ops4j/pax/logging/slf4j/Slf4jLogger.java#L166-L174
104,299
ops4j/org.ops4j.pax.logging
pax-logging-api/src/main/java/org/ops4j/pax/logging/slf4j/Slf4jLogger.java
Slf4jLogger.debug
public void debug( String format, Object arg ) { if( m_delegate.isDebugEnabled() ) { FormattingTuple tuple = MessageFormatter.format( format, arg ); m_delegate.debug( tuple.getMessage(), tuple.getThrowable() ); } }
java
public void debug( String format, Object arg ) { if( m_delegate.isDebugEnabled() ) { FormattingTuple tuple = MessageFormatter.format( format, arg ); m_delegate.debug( tuple.getMessage(), tuple.getThrowable() ); } }
[ "public", "void", "debug", "(", "String", "format", ",", "Object", "arg", ")", "{", "if", "(", "m_delegate", ".", "isDebugEnabled", "(", ")", ")", "{", "FormattingTuple", "tuple", "=", "MessageFormatter", ".", "format", "(", "format", ",", "arg", ")", ";...
Log a message at the DEBUG level according to the specified format and argument. <p>This form avoids superfluous object creation when the logger is disabled for the DEBUG level. </p> @param format the format string @param arg the argument
[ "Log", "a", "message", "at", "the", "DEBUG", "level", "according", "to", "the", "specified", "format", "and", "argument", "." ]
493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d
https://github.com/ops4j/org.ops4j.pax.logging/blob/493de4e1db4fe9f981f3dd78b8e40e5bf2b2e59d/pax-logging-api/src/main/java/org/ops4j/pax/logging/slf4j/Slf4jLogger.java#L288-L295