Uploaded image for project: 'SLF4J'
  1. SLF4J
  2. SLF4J-188

XLogger enhancements

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • None
    • 1.6.x
    • slf4j-ext
    • None
    • Operating System: Windows NT
      Platform: PC

    Description

      Hi, I would like to propose to improve some methods in XLogger:

      <T> T exit(T result);
      <T extends Throwable> T throwing(T throwable);
      <T extends Throwable> T throwing(Level level, T throwable);

      so I could use them as follows:

      public void myMethod(String myParam, Object myOtherParam) {

      this.xlogger.entry(myParam, myOtherParam);

      if (conditionNotMet)

      { throw this.xlogger.throwing(new ConditionNotMetException("wrong")); }

      return this.xlogger.exit(myParam.concat(myOtherParam));
      }

      Well maybe it's too much too ask after all the debates about varargs support over the years =)

      Xavier.

      Attachments

        Activity

          People

            slf4j-dev SLF4J developers list
            kalgon@hotmail.com Xavier
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: