Re: [slf4j-dev] Why no error(Throwable) on the Logger interface?

2009-05-29 Thread Ceki Gulcu
Jukka Zitting wrote: On Thu, May 28, 2009 at 6:17 PM, Ceki Gulcu c...@qos.ch wrote: No, just that in most cases some essential piece of the puzzle (source code, stack traces, or in this specific example thread names) is not readily available for a variety of different reasons. For example

Re: [slf4j-dev] Transactions in slf4j?

2009-06-01 Thread Ceki Gulcu
Thorbjoern Ravn Andersen wrote: I think that would be one of those use cases for an NDC... see http://apps.sourceforge.net/trac/lilith/wiki/NestedDiagnosticContext Interesting. But does anything actually happen when the push and pops are executed? You can emulate NDC using MDC. Anyway,

Re: [slf4j-dev] Transactions in slf4j?

2009-06-01 Thread Ceki Gulcu
Here is a idea: Marker TX_BEGIN = MarkerFactory.getMarker(TX_BEGIN); Marker TX_END= MarkerFactory.getMarker(TX_END); try { logger.info(TX_BEGIN, beginning tx); doSomething(); } finally { logger.info(TX_END, ending tx); } Thorbjoern Ravn Andersen wrote: Ceki Gulcu skrev: Thorbjoern

Re: [slf4j-dev] Transactions in slf4j?

2009-06-03 Thread Ceki Gulcu
Thorbjoern Ravn Andersen wrote: Ceki Gulcu skrev: Here is a idea: Marker TX_BEGIN = MarkerFactory.getMarker(TX_BEGIN); Marker TX_END= MarkerFactory.getMarker(TX_END); try { logger.info(TX_BEGIN, beginning tx); doSomething(); } finally { logger.info(TX_END, ending tx); } Ok. If I

Re: [slf4j-dev] svn commit: r1345 - slf4j/trunk/slf4j-api/src/main/java/org/slf4j

2009-06-10 Thread Ceki Gulcu
Ralph, thank you for catching this. Ralph Goers wrote: .reportFailure(Class path contains multiple SLF4J bindins.); should be .reportFailure(Class path contains multiple SLF4J bindings.); Ralph On Jun 9, 2009, at 1:24 PM, c...@slf4j.org wrote: Author: ceki Date: Tue Jun 9 22:24:16 2009 New

[slf4j-dev] Release of SLF4J version 1.5.7

2009-06-10 Thread Ceki Gulcu
June 10th, 2009 - Release of SLF4J 1.5.7 Hello all, I am happy to announce the immediate availability of SLF4J version 1.5.7, consisting of bug fixes and minor enhancements. It is totally compatible with SLF4J version 1.5.6. Please refer to the the news page for precise details.

Re: [slf4j-dev] svn commit: r1331 - slf4j/trunk/slf4j-site/src/site/pages

2009-06-29 Thread Ceki Gulcu
Hello Thorbjoern, It's a nice read. I'd like to link to it from the Articles section of http://slf4j.org/docs.html asap. Please let me know when you are ready. Thorbjoern Ravn Andersen wrote: Joern Huxhorn skrev: Thorbjoern Ravn Andersen wrote: Would your friend be interested in

[slf4j-dev] Devoxx Conference

2009-07-06 Thread Ceki Gulcu
Hello all, My submission for a SLF4J/logback talk for this year's Devoxx conference has been accepted. For those who don't know Devoxx, rumor has it that it is the biggest Java conference in Europe. Cheers, -- Ceki Gülcü Logback: The reliable, generic, fast and flexible logging framework for

Re: [slf4j-dev] slf4j i8ln

2009-08-19 Thread Ceki Gulcu
Comments inline. Pete Muir wrote: Hi, As discussed here https://jira.jboss.org/jira/browse/WBRI-290, we would like to switch to slf4j as our logger (it offers a logging facade, supports MDC/NDC and parameter replacement). However, as Takeshi highlights here

Re: [slf4j-dev] slf4j i8ln

2009-08-19 Thread Ceki Gulcu
Pete Muir wrote: This is valid in Java 5 and above. For example: public interface Logger { public enum LogMessages { WRONG_PASSWORD } public static class Test { public void test() { Logger logger = new Logger() { public void warn(Enum? message) {

Re: [slf4j-dev] slf4j i8ln

2009-08-19 Thread Ceki Gulcu
Ralph Goers wrote: As I've said, I'm not at all in favor of SLF4J doing I18N. It is better to do it under a framework such as Spring's MessageSource interface where you can either use the default implementation, which uses ResourceBundles, or easily provide your own. As I said, I'm also

Re: [slf4j-dev] slf4j i8ln

2009-08-19 Thread Ceki Gulcu
Ralph Goers wrote: In cases like event logging it may be that the event logs are viewed by customer service reps speaking in multiple languages. In that case the locale of the person viewing the log is important (which may be days or months after the log entry was recorded). Very good

[slf4j-dev] Migrated to git

2009-08-20 Thread Ceki Gulcu
Hello all, Given that git is in my opinion such a clearly better version control system than Subversion, I migrated the SLF4J svn repository to git. It was easier than expected. There are two master repositories, one hosted at git.qos.ch and the other hosted at github. For more information on

Re: [slf4j-dev] Migrated to git

2009-08-20 Thread Ceki Gulcu
Jukka Zitting wrote: Hi, It would be useful to have the old svn branches and tags also reflected in the slf4j.git repository. If you used the standard layout option to git-svn when migrating the code, they actually should already exist as remote branches. Copying the references to normal

Re: [slf4j-dev] Migrated to git

2009-08-20 Thread Ceki Gulcu
I think git supports a whole bunch of protocols including http and/or webdav. The git.qos.ch server currently supports SSH (port 22) and the git protocol (port 9418). Github allows you to fork the repository, but the forked version, as far as I could tell, is accessible only via the git

Re: [slf4j-dev] Migrated to git

2009-08-20 Thread Ceki Gulcu
Added http support for cloning. See http://slf4j.org/repos.html Ceki Gulcu wrote: I think git supports a whole bunch of protocols including http and/or webdav. The git.qos.ch server currently supports SSH (port 22) and the git protocol (port 9418). Github allows you to fork

Re: [slf4j-dev] slf4j i8ln

2009-08-20 Thread Ceki Gulcu
Takeshi Kondo wrote: If log level is separated, logging code is public class enum LogMessages{ @Debug(debug log message) TEST0001 } Doesn't LogMessages need to be compiled? If LogMessages needs compiling, how is it helpful? -- Ceki Gülcü Logback: The reliable, generic, fast

Re: [slf4j-dev] slf4j i8ln

2009-08-20 Thread Ceki Gulcu
Takeshi Kondo wrote: public class enum LogMessages{ @Debug(debug log message) TEST0001 } If I followed you, the idea is to encode the resource bundle *keys* within enums. You still need to check the consistency of the resource bundle keys, including copies found in various language

Re: [slf4j-dev] slf4j i8ln

2009-08-24 Thread Ceki Gulcu
Takeshi's submission is not a finished product so let's go easy on him. While I have still not bought the idea of levels in enums or resource bundles, I think the idea of using enums for resource bundle keys is an important step forward. Having levels in the enum or resource bundles (I

Re: [slf4j-dev] slf4j i8ln

2009-08-24 Thread Ceki Gulcu
Hi Takeshi, Thank you for your response. I have looked at your code again and now understand how levels can be set in resource bundles. Having said that, I am not convinced that associating levels to keys in resource bundles is a good idea because there are other possibly better ways of

Re: [slf4j-dev] slf4j i8ln

2009-08-24 Thread Ceki Gulcu
Takeshi Kondo wrote: Hi Ceki The fact that it can't be done in log4j does not mean that it can't be done. Is it mean that it can be done in logback? If it is, I'll change logger to logback. To be honest, at present time it can't be done in logback either. However, logback already has

Re: [slf4j-dev] slf4j i8ln

2009-08-25 Thread Ceki Gulcu
Ralph Goers wrote: On Aug 24, 2009, at 1:25 PM, Ceki Gulcu wrote: Takeshi Kondo wrote: Hi Ceki The fact that it can't be done in log4j does not mean that it can't be done. Is it mean that it can be done in logback? If it is, I'll change logger to logback. To be honest, at present

[slf4j-dev] Announcing CAI18N version 0.2

2009-08-28 Thread Ceki Gulcu
28th of August 2009 - Release of CAI18N version 0.2 I am happy to announce the immediate availability of CAI18N version 0.2. Compiler Assisted Internationalization, abbreviated as CAI18N, is a java library for writing internationalized messages. CAI18N is spawn of SLF4J. The two-page manual

Re: [slf4j-dev] Announcing CAI18N version 0.2

2009-08-31 Thread Ceki Gulcu
a compile error in MessageIdVerifier. The default JVM on my machine is 1.5. I guess you don't have a mailing list yet for the project. Ralph On Aug 28, 2009, at 6:04 AM, Ceki Gulcu wrote: 28th of August 2009 - Release of CAI18N version 0.2 I am happy to announce the immediate availability

Re: [slf4j-dev] [GIT] SLF4J: Simple Logging Facade for Java branch, master, updated. edf889671c1a126ac8722925d731375f75d3f200

2009-09-01 Thread Ceki Gulcu
Thorbjoern Ravn Andersen wrote: added by portage for gitosis-gentoo skrev: This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project SLF4J: Simple Logging Facade for Java. Could you remove

[slf4j-dev] Release of SLF4J version 1.5.9-RC0

2009-09-04 Thread Ceki Gulcu
September 4th, 2009 - Release of SLF4J 1.5.9-RC0 Hello all, I am proud to announce the immediate availability of SLF4J version 1.5.9-RC), consisting of bug fixes and minor enhancements. It is totally compatible with SLF4J version 1.5.8. However, the slf4j-ext module ships with a new package

<    1   2