bugzilla | 1 Feb 15:32
Picon
Favicon

DO NOT REPLY [Bug 42189] Add simple bridge for java.util.logging, with basic Configurator support

https://issues.apache.org/bugzilla/show_bug.cgi?id=42189

--- Comment #19 from Emmanuel Bourg <ebourg <at> apache.org> 2012-02-01 14:32:01 UTC ---
Is there any updates on this topic? Is help needed? I have been using this
component for quite some time now, most notably as a mean to nicely format the
JUL messages in my test cases without touching the code. An official release in
the central Maven repository, either as an independent component or as part of
the core distribution, would be very welcome.

For the record here is how I use the bridge to format the log messages in my
tests, in the Maven POM I put this:

  <dependencies>
    <dependency>
      <groupId>org.apache.logging</groupId>
      <artifactId>apache-jul-log4j-bridge</artifactId>
      <version>1.0.0-SNAPSHOT</version>
      <scope>test</scope>
    </dependency>

    <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
      <version>1.2.16</version>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <plugin>
    <artifactId>maven-surefire-plugin</artifactId>
(Continue reading)

Picon
Favicon

[jira] [Created] (LOG4J2-56) Level.toLevel throws IllegalArgumentException instead of returning default Level

Level.toLevel throws IllegalArgumentException instead of returning default Level
--------------------------------------------------------------------------------

                 Key: LOG4J2-56
                 URL: https://issues.apache.org/jira/browse/LOG4J2-56
             Project: Log4j 2
          Issue Type: Bug
          Components: API
    Affects Versions: 0.1
         Environment: Java 6
            Reporter: John Owen Atala
            Priority: Minor

org.apache.logging.log4j.Level.toLevel(String, Level) ( Level.java line 100) uses enum static
method valueOf(String) which throws IllegalArgumentException instead of returning null when enum
const doesnt exists. This makes the methods Level.toLevel throw the exception instead of return default value.

Solution:

You can:
a) sorround it with a try-catch statement, like:
        try {
			return valueOf(sArg);
		} catch (Exception e) {
			//exception doesnt matter
			return defaultLevel;
		}

b) translate manually de String to a enum constant, like:
        for (Level level : values()) {
(Continue reading)

Picon
Favicon

[jira] [Resolved] (LOG4J2-56) Level.toLevel throws IllegalArgumentException instead of returning default Level


     [
https://issues.apache.org/jira/browse/LOG4J2-56?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ralph Goers resolved LOG4J2-56.
-------------------------------

    Resolution: Fixed
      Assignee: Ralph Goers

Thanks. I created a unit test to verify the problem and then resolved it using option b. Please verify and close.

> Level.toLevel throws IllegalArgumentException instead of returning default Level
> --------------------------------------------------------------------------------
>
>                 Key: LOG4J2-56
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-56
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 0.1
>         Environment: Java 6
>            Reporter: John Owen Atala
>            Assignee: Ralph Goers
>            Priority: Minor
>   Original Estimate: 10m
>  Remaining Estimate: 10m
>
> org.apache.logging.log4j.Level.toLevel(String, Level) ( Level.java line 100) uses enum static
method valueOf(String) which throws IllegalArgumentException instead of returning null when enum
(Continue reading)

Picon
Favicon

[jira] [Closed] (LOG4J2-56) Level.toLevel throws IllegalArgumentException instead of returning default Level


     [
https://issues.apache.org/jira/browse/LOG4J2-56?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

John Owen Atala closed LOG4J2-56.
---------------------------------

Verified at r1240306

> Level.toLevel throws IllegalArgumentException instead of returning default Level
> --------------------------------------------------------------------------------
>
>                 Key: LOG4J2-56
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-56
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 0.1
>         Environment: Java 6
>            Reporter: John Owen Atala
>            Assignee: Ralph Goers
>            Priority: Minor
>   Original Estimate: 10m
>  Remaining Estimate: 10m
>
> org.apache.logging.log4j.Level.toLevel(String, Level) ( Level.java line 100) uses enum static
method valueOf(String) which throws IllegalArgumentException instead of returning null when enum
const doesnt exists. This makes the methods Level.toLevel throw the exception instead of return default value.
> Solution:
> You can:
(Continue reading)

Picon
Gravatar

Building a new release

folks,

i have some trouble to fully build the release. My problem is related
to the mingw dependencies i need to create a dll or so. I am not sure
what to install on my box, there are three different things related to
mingw (i use mac ports). Now on the other hand I would like to proceed
with 1.2.17.

Is there anybody willing to to the windows tests when I have build the
RC? Maybe one of the log4net gurus? :-)

Cheers,
Christian

--

-- 
http://www.grobmeier.de
https://www.timeandbill.de
bugzilla | 5 Feb 08:15
Picon
Favicon

Bug report for Log4j [2012/02/05]

+---------------------------------------------------------------------------+
| Bugzilla Bug ID                                                           |
|     +---------------------------------------------------------------------+
|     | Status: UNC=Unconfirmed NEW=New         ASS=Assigned                |
|     |         OPN=Reopened    VER=Verified    (Skipped Closed/Resolved)   |
|     |   +-----------------------------------------------------------------+
|     |   | Severity: BLK=Blocker CRI=Critical  REG=Regression  MAJ=Major   |
|     |   |           MIN=Minor   NOR=Normal    ENH=Enhancement TRV=Trivial |
|     |   |   +-------------------------------------------------------------+
|     |   |   | Date Posted                                                 |
|     |   |   |          +--------------------------------------------------+
|     |   |   |          | Description                                      |
|     |   |   |          |                                                  |
|13099|Opn|Nor|2002-09-27|DOMConfigurator ignores category factory setting  |
|17887|Opn|Maj|2003-03-11|RollingFileAppender does not work for 10 threads  |
|20395|Inf|Enh|2003-06-01|PreparedStatementAppender Enhancement             |
|23329|New|Enh|2003-09-22|<logger> element in XML config should support reso|
|26084|Inf|Nor|2004-01-13|Log Event detail panel does not show special chara|
|27363|Inf|Enh|2004-03-02|JNI based SyslogAppender                          |
|27367|Inf|Enh|2004-03-02|NetSendAppender                                   |
|29244|Inf|Nor|2004-05-27|Preserve XML content in log messages when using XM|
|29305|New|Nor|2004-05-30|Chainsaw doesn't see locationinfo from XMLSocketRe|
|30055|New|Nor|2004-07-12|Problem with registering Appenders with the same n|
|30407|Inf|Maj|2004-07-30|Externally rolled file problem                    |
|30888|Inf|Maj|2004-08-27|Chainsaw mixes files in same panel                |
|30892|New|Min|2004-08-27|Log files cannot be closed                        |
|31089|New|Nor|2004-09-07|Does not accept ISO8601 dates in focus field      |
|31178|Inf|Cri|2004-09-11|Exception using Chainsaw for simple debugging     |
|31179|Ass|Enh|2004-09-11|Implement Chainsaw as Eclipse stand-alone applicat|
|33278|New|Min|2005-01-27|NPE thrown durring daily log file rollover        |
(Continue reading)

bugzilla | 12 Feb 08:15
Picon
Favicon

Bug report for Log4j [2012/02/12]

+---------------------------------------------------------------------------+
| Bugzilla Bug ID                                                           |
|     +---------------------------------------------------------------------+
|     | Status: UNC=Unconfirmed NEW=New         ASS=Assigned                |
|     |         OPN=Reopened    VER=Verified    (Skipped Closed/Resolved)   |
|     |   +-----------------------------------------------------------------+
|     |   | Severity: BLK=Blocker CRI=Critical  REG=Regression  MAJ=Major   |
|     |   |           MIN=Minor   NOR=Normal    ENH=Enhancement TRV=Trivial |
|     |   |   +-------------------------------------------------------------+
|     |   |   | Date Posted                                                 |
|     |   |   |          +--------------------------------------------------+
|     |   |   |          | Description                                      |
|     |   |   |          |                                                  |
|13099|Opn|Nor|2002-09-27|DOMConfigurator ignores category factory setting  |
|17887|Opn|Maj|2003-03-11|RollingFileAppender does not work for 10 threads  |
|20395|Inf|Enh|2003-06-01|PreparedStatementAppender Enhancement             |
|23329|New|Enh|2003-09-22|<logger> element in XML config should support reso|
|26084|Inf|Nor|2004-01-13|Log Event detail panel does not show special chara|
|27363|Inf|Enh|2004-03-02|JNI based SyslogAppender                          |
|27367|Inf|Enh|2004-03-02|NetSendAppender                                   |
|29244|Inf|Nor|2004-05-27|Preserve XML content in log messages when using XM|
|29305|New|Nor|2004-05-30|Chainsaw doesn't see locationinfo from XMLSocketRe|
|30055|New|Nor|2004-07-12|Problem with registering Appenders with the same n|
|30407|Inf|Maj|2004-07-30|Externally rolled file problem                    |
|30888|Inf|Maj|2004-08-27|Chainsaw mixes files in same panel                |
|30892|New|Min|2004-08-27|Log files cannot be closed                        |
|31089|New|Nor|2004-09-07|Does not accept ISO8601 dates in focus field      |
|31178|Inf|Cri|2004-09-11|Exception using Chainsaw for simple debugging     |
|31179|Ass|Enh|2004-09-11|Implement Chainsaw as Eclipse stand-alone applicat|
|33278|New|Min|2005-01-27|NPE thrown durring daily log file rollover        |
(Continue reading)

bugzilla | 16 Feb 00:03
Picon
Favicon

DO NOT REPLY [Bug 52676] New: Location information unavailable when FQCN ends in .

https://issues.apache.org/bugzilla/show_bug.cgi?id=52676

             Bug #: 52676
           Summary: Location information unavailable when FQCN ends in .
           Product: Log4j
           Version: 1.2
          Platform: Macintosh
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Layout
        AssignedTo: log4j-dev <at> logging.apache.org
        ReportedBy: allen <at> holub.com
    Classification: Unclassified

This is arguably a bug in the sample application.

When both extending and wrapping Logger, the sample application suggests that
"It's usually a good idea to add a dot suffix to the fully qualified class
name..."

However, if you do that, the location-related format conversions (%F, %L, etc)
used by org.apache.log4j.PatternLayout do not work correctly. (They print
question marks instead of the actual location info.)

The problem is the following line (org.apache.log4j.spi.LocationInfo, line
143):

    if(fqnOfCallingClass.equals(thisClass)) {
       //...
(Continue reading)

bugzilla | 16 Feb 00:04
Picon
Favicon

DO NOT REPLY [Bug 52676] Location information unavailable when FQCN ends in .

https://issues.apache.org/bugzilla/show_bug.cgi?id=52676

Allen Holub <allen <at> holub.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |allen <at> holub.com
         OS/Version|                            |All

--

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
bugzilla | 16 Feb 08:34
Picon
Favicon

DO NOT REPLY [Bug 50486] Memoryleak - org.apache.log4j.helpers.ThreadLocalMap

https://issues.apache.org/bugzilla/show_bug.cgi?id=50486

Tim Carpenter <timjohncarpenter <at> gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |timjohncarpenter <at> gmail.com

--

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Gmane