Dynamically Enable/Disable WebObjects SQL Logging
1 NSLog.allowDebugLoggingForGroups(0x10000L); 2 // Do something that roundtrips the DB, like editingContext.saveChanges(). 3 NSLog.refuseDebugLoggingForGroups(0x10000L);
DZone Snippets > rentzsch > java
12880 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Jonathan 'Wolf' Rentzsch http://rentzsch.com
1 NSLog.allowDebugLoggingForGroups(0x10000L); 2 // Do something that roundtrips the DB, like editingContext.saveChanges(). 3 NSLog.refuseDebugLoggingForGroups(0x10000L);
1 (new DOMConfigurator()).doConfigure(resourceManager().inputStreamForResourceNamed("log4j.xml", "app", null), LogManager.getLoggerRepository());
1 NSLog.debug.setAllowedDebugLevel(NSLog.DebugLevelDetailed); 2 NSLog.allowDebugLoggingForGroups(NSLog.DebugGroupRules);