You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "Andrew Gaul (JIRA)" <ji...@apache.org> on 2013/10/29 21:09:25 UTC

[jira] [Comment Edited] (JCLOUDS-119) allow setting log level in non-interactive jclouds-cli

    [ https://issues.apache.org/jira/browse/JCLOUDS-119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13808377#comment-13808377 ] 

Andrew Gaul edited comment on JCLOUDS-119 at 10/29/13 8:07 PM:
---------------------------------------------------------------

Setting DEBUG also enables wire logging.  I ran with this diff to echo logs to the console:

{noformat}
--- bin/jclouds-cli-1.6.2-incubating/etc/log4j.properties.orig  2013-10-29 13:02:36.405685934 -0700
+++ bin/jclouds-cli-1.6.2-incubating/etc/log4j.properties       2013-10-29 13:02:44.921685558 -0700
@@ -20 +20,3 @@
-log4j.rootLogger=INFO, file
+log4j.rootLogger=DEBUG, file, console
+log4j.appender.console=org.apache.log4j.ConsoleAppender
+log4j.appender.console.layout=org.apache.log4j.PatternLayout
{noformat}


was (Author: gaul):
Setting DEBUG appears to enable wire logging.  I ran with this diff to echo logs to the console:

{noformat}
--- bin/jclouds-cli-1.6.2-incubating/etc/log4j.properties.orig  2013-10-29 13:02:36.405685934 -0700
+++ bin/jclouds-cli-1.6.2-incubating/etc/log4j.properties       2013-10-29 13:02:44.921685558 -0700
@@ -20 +20,3 @@
-log4j.rootLogger=INFO, file
+log4j.rootLogger=DEBUG, file, console
+log4j.appender.console=org.apache.log4j.ConsoleAppender
+log4j.appender.console.layout=org.apache.log4j.PatternLayout
{noformat}

> allow setting log level in non-interactive jclouds-cli
> ------------------------------------------------------
>
>                 Key: JCLOUDS-119
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-119
>             Project: jclouds
>          Issue Type: Improvement
>          Components: jclouds-cli
>            Reporter: Andrew Gaul
>            Priority: Minor
>
> We should allow users to change the log level for non-interactive jclouds-cli.  In interactive mode we can call "log:set DEBUG" but we should support something for non-interactive users.



--
This message was sent by Atlassian JIRA
(v6.1#6144)