[ 
https://issues.apache.org/jira/browse/HADOOP-1185?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12488432
 ] 

Owen O'Malley commented on HADOOP-1185:
---------------------------------------

The best approach would be something along the lines of:

Log LOG = ...;

if (LOG instanceof Log4JLogger) {
  org.apache.log4j.Logger l4j = ((Log4JLogger) LOG).getLogger();
  ... control the logger in log4j specific ways...
}

> dynamically change dfs log levels
> ---------------------------------
>
>                 Key: HADOOP-1185
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1185
>             Project: Hadoop
>          Issue Type: Improvement
>          Components: dfs
>            Reporter: dhruba borthakur
>         Assigned To: dhruba borthakur
>
> I would like to switch on the debug log level of the namenode without 
> restarting it. This is needed to analyze a production system.
> Can somebody please advice on how to set the loglevel dyncamically on a 
> running namenode? I was thinking of enhancing dfsadmin to make an RPC to the 
> namenode to set a specified logging level. But the apache common logging APi 
> does not export an API to change logging levels.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to