com.deftlabs.logging.mongo
Class LogConfigUtils
java.lang.Object
com.deftlabs.logging.mongo.LogConfigUtils
public final class LogConfigUtils
- extends Object
The log config utils. Most of this source came from the original OEMware project.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LogConfigUtils
public LogConfigUtils()
openClasspathResourceUrl
public static final InputStream openClasspathResourceUrl(String pName)
throws IOException
- Open a resource url input stream. Look at the loadResourceUrl method
for a description of how the resource is searched for.
- Parameters:
pName - The resource name.
- Returns:
- The open input stream.
- Throws:
IOException
loadResourceUrlFromClasspath
public static final URL loadResourceUrlFromClasspath(String pName)
- Load a resource url. This looks at the current class loader first and if
the resource isn't found it looks at the system class loader. If it is
not found anywhere, an exception is thrown.
- Parameters:
pName - The resource name.
- Returns:
- The resource url.