Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Sprechender Name #11

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/java/org/apache/log4j/Logger.java
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,15 @@ public class Logger extends Category {
*/
static
public
Logger getLogger(String name) {
Logger getLoggerID(String name) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whats wrong/irritating about #getLogger(String)?
IMHO #getLoggerID(String) is much more misleading, since the return type of this method is a Logger, not an ID ...

return LogManager.getLogger(name);
}

/**
* Shorthand for <code>getLogger(clazz.getName())</code>.
*
* @param clazz The name of <code>clazz</code> will be used as the
* name of the logger to retrieve. See {@link #getLogger(String)}
* name of the logger to retrieve. See {@link #getLoggerID(String)}
* for more detailed information.
*/
static
Expand Down