nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Furkan KAMACI (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (NUTCH-2351) Log with Generic Class Name
Date Tue, 17 Jan 2017 20:12:26 GMT

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

Furkan KAMACI updated NUTCH-2351:
---------------------------------
    Description: 
There are many mistakes when some reference code is copied and created a new class and a logger
is used. We can log with a generic class name to avoid it as like:

{code:java}
private static final Logger LOG = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
{code}



> Log with Generic Class Name
> ---------------------------
>
>                 Key: NUTCH-2351
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2351
>             Project: Nutch
>          Issue Type: Improvement
>    Affects Versions: 2.3.1
>            Reporter: Furkan KAMACI
>            Assignee: Furkan KAMACI
>            Priority: Minor
>             Fix For: 2.4
>
>
> There are many mistakes when some reference code is copied and created a new class and
a logger is used. We can log with a generic class name to avoid it as like:
> {code:java}
> private static final Logger LOG = LoggerFactory.getLogger(MethodHandles.lookup().lookupClass());
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message