@@ -194,22 +194,13 @@ synchronized Enumeration<LogEntry> getEntries()
194194 return new LogNodeEnumeration (m_head , m_tail );
195195 }
196196
197- private String getLoggerNameForEvent (final Bundle bundle , final String defaultName ) {
198- if (bundle != null ) {
199- if (bundle .getSymbolicName () != null ) {
200- return bundle .getSymbolicName ().concat (":" ).concat (bundle .getVersion ().toString ());
201- }
202- }
203- return defaultName ;
204- }
205-
206197 /** The messages returned for the framework events. */
207198 private static final String [] FRAMEWORK_EVENT_MESSAGES =
208199 {
209200 "FrameworkEvent STARTED" ,
210201 "FrameworkEvent ERROR" ,
211202 "FrameworkEvent PACKAGES REFRESHED" ,
212- "FrameworkEvent STARTLEVEL CHANGED to " ,
203+ "FrameworkEvent STARTLEVEL CHANGED" ,
213204 "FrameworkEvent WARNING" ,
214205 "FrameworkEvent INFO"
215206 };
@@ -232,12 +223,8 @@ public void frameworkEvent(final FrameworkEvent event)
232223 }
233224 }
234225
235- if ( event .getType () == FrameworkEvent .STARTLEVEL_CHANGED ) {
236- message = message .concat (String .valueOf (m_startLevel .getStartLevel ()));
237- }
238-
239226 log (
240- getLoggerNameForEvent ( event . getBundle (), "Events.Framework" ) ,
227+ "Events.Framework" ,
241228 event .getBundle (),
242229 null ,
243230 (eventType == FrameworkEvent .ERROR ) ? LogLevel .ERROR : LogLevel .INFO ,
@@ -281,7 +268,7 @@ public void bundleChanged(final BundleEvent event)
281268 if (message != null )
282269 {
283270 log (
284- getLoggerNameForEvent ( event . getBundle (), "Events.Bundle" ) ,
271+ "Events.Bundle" ,
285272 event .getBundle (),
286273 null ,
287274 LogLevel .INFO ,
@@ -330,7 +317,7 @@ public void serviceChanged(final ServiceEvent event)
330317 }
331318
332319 log (
333- getLoggerNameForEvent ( event . getServiceReference (). getBundle (), "Events.Service" ) ,
320+ "Events.Service" ,
334321 event .getServiceReference ().getBundle (),
335322 event .getServiceReference (),
336323 (eventType == ServiceEvent .MODIFIED ) ? LogLevel .DEBUG : LogLevel .INFO ,
0 commit comments