Thanks for the patch Sergio. I'll look it over. I agree that I think it would be a bad idea to let people alter the logging we do to our standard log file. I always want to see our log files in the same format.
I'm not entirely sure what your original motivation for this thread. What aspect did you modify when you stumbled into this? Just curious about use cases. Minimally I'd like to make it possible for people to adjust the log levels, add more appenders (but not remove the "standard" ones) and to specify the formatter on the console. > -----Original Message----- > From: tc-dev-boun...@lists.terracotta.org [mailto:tc-dev- > boun...@lists.terracotta.org] On Behalf Of Sergio Bossa > Sent: Tuesday, February 02, 2010 10:25 PM > To: tc-dev@lists.terracotta.org > Subject: Re: [tc-dev] Custom Terracotta server and client logs > > I've made a few more changes. > > Now, users can configure a custom appender, logger level and > destination: the logger level is the only thing that will affect also > file logs, that is, if you change the logger level of > "com.terracottatech", this will affect both your appenders and the > default file logs. > > I'll submit a patch during today. > Cheers, > > Sergio B. > > On Tue, Feb 2, 2010 at 2:03 PM, Sergio Bossa <sergio.bo...@gmail.com> > wrote: > > On Mon, Feb 1, 2010 at 9:16 PM, Tim Eck <t...@terracottatech.com> > wrote: > > > >> That is the class. Basically I think the change that would be nice > to have > >> would be to externalize as much of the underlying log4j > configuration as > >> possible (such that it can customized to taste). > > > > I think that externalizing (almost) all of the the underlying log4j > > configuration may open a real can of worms, mainly because: > > - Logging configuration is spread in TCLogging itself (hardcoded) > > *and* in terracotta configuration files (being able to specify log > > directories): I have no clue about what may happen if I make deep > > changes in TCLogging and I don't have too much time to investigate. > > - TCLogging has several public static methods with no documentation, > > and they could be called anywhere: I couldn't change them without > > solid knowledge of all things around. > > > > Technical reasons apart, I think that file-based logging should not > be > > changed: it's very low-level and vital for basic debugging, users > > should not have a way to change that. > > Console-based logging should definitely be configurable instead: > users > > should be able to configure at least level and layout. > > > > So I'm changing the TCLogging class to: > > - Try to load a custom log4j file for configuring console logging > > (avoiding duplicated logs and alike). > > - Normally log with default (hardcoded) settings if such a file > > couldn't be loaded. > > I already have a working prototype for this fix. > > > > What do you think? > > Cheers! > > > > Sergio B. > > > > -- > > Sergio Bossa > > Software Passionate and Open Source Enthusiast. > > URL: http://www.linkedin.com/in/sergiob > > > > > > -- > Sergio Bossa > Software Passionate and Open Source Enthusiast. > URL: http://www.linkedin.com/in/sergiob > _______________________________________________ > tc-dev mailing list > tc-dev@lists.terracotta.org > http://lists.terracotta.org/mailman/listinfo/tc-dev _______________________________________________ tc-dev mailing list tc-dev@lists.terracotta.org http://lists.terracotta.org/mailman/listinfo/tc-dev