User: oleg
Date: 00/10/17 08:39:49
Modified: src/main/org/jboss/logging FileLogging.java
Log:
Now it is possible to have many FileLogging entries in jboss.conf with different
source filters
Revision Changes Path
1.7 +6 -3 jboss/src/main/org/jboss/logging/FileLogging.java
Index: FileLogging.java
===================================================================
RCS file: /products/cvs/ejboss/jboss/src/main/org/jboss/logging/FileLogging.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- FileLogging.java 2000/10/03 11:35:18 1.6
+++ FileLogging.java 2000/10/17 15:39:49 1.7
@@ -20,7 +20,7 @@
*
* @see <related>
* @author Rickard �berg ([EMAIL PROTECTED])
- * @version $Revision: 1.6 $
+ * @version $Revision: 1.7 $
*/
public class FileLogging
implements FileLoggingMBean, MBeanRegistration, NotificationListener
@@ -114,19 +114,22 @@
public ObjectName preRegister(MBeanServer server, ObjectName name)
throws java.lang.Exception
{
+ String objectName;
+
+ objectName = OBJECT_NAME + ",sources=" + (sources == null ? "All" : sources);
try
{
openLogFile();
server.addNotificationListener(new
ObjectName(server.getDefaultDomain(),"service","Log"),this,null,null);
log.log("Logging started");
- return new ObjectName(OBJECT_NAME);
+ return new ObjectName(objectName);
} catch (Throwable e)
{
Logger.exception(e);
}
- return new ObjectName(OBJECT_NAME);
+ return new ObjectName(objectName);
}
public void postRegister(java.lang.Boolean registrationDone)