James Taylor <[EMAIL PROTECTED]> writes: >Consider two turbine views running withing the same servlet container. I >want all logging for view A to be logged to a database, and all the logs >for the other view to a specific file.
>This is not feasible with the factory / singleton logging idiom since >the logger is tied to the class. Huh? consider a user specific property called "wantDbLogging". Boolean wantDbLogging = (Boolean) data.getUser().getTemp("wantDbLogging"); Log log = LogFactory.getLogger(wantDbLogging.booleanValue() ? "dbLog" : "normalLog"); [...] log.debug("foo"); I can even flip that boolean switch at runtime. (actual method names might vary slightly but you get the point). Commons Logging is _NOT_ "write everything onto the class name based logger". This is just the most convenient approach. [..] >Does that make any sense? No, sorry. :-) Or I didn't understand you. Regards Henning -- Dipl.-Inf. (Univ.) Henning P. Schmiedehausen -- Geschaeftsfuehrer INTERMETA - Gesellschaft fuer Mehrwertdienste mbH [EMAIL PROTECTED] Am Schwabachgrund 22 Fon.: 09131 / 50654-0 [EMAIL PROTECTED] D-91054 Buckenhof Fax.: 09131 / 50654-20 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>