Details

    • Type: Improvement
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 1.6.x
    • Fix Version/s: None
    • Component/s: slf4j-ext
    • Labels:
      None
    • Environment:

      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

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

              Dates

              • Created:
                Updated:
                Resolved: