Return-Path: Delivered-To: apmail-axis-c-dev-archive@www.apache.org Received: (qmail 70274 invoked from network); 28 Jun 2010 21:05:46 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Jun 2010 21:05:46 -0000 Received: (qmail 26949 invoked by uid 500); 28 Jun 2010 21:05:46 -0000 Delivered-To: apmail-axis-c-dev-archive@axis.apache.org Received: (qmail 26483 invoked by uid 500); 28 Jun 2010 21:05:45 -0000 Mailing-List: contact c-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list c-dev@axis.apache.org Received: (qmail 26362 invoked by uid 99); 28 Jun 2010 21:05:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jun 2010 21:05:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jun 2010 21:05:42 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o5SKvpBa022066 for ; Mon, 28 Jun 2010 20:57:51 GMT Message-ID: <32136298.98751277758671210.JavaMail.jira@thor> Date: Mon, 28 Jun 2010 16:57:51 -0400 (EDT) From: "Damitha Kumarage (JIRA)" To: c-dev@axis.apache.org Subject: [jira] Resolved: (AXIS2C-1460) Enable/disable logging at runtime In-Reply-To: <1158542016.69361267712007396.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2C-1460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Damitha Kumarage resolved AXIS2C-1460. -------------------------------------- Fix Version/s: 1.7.0 Resolution: Fixed Patch applied. > Enable/disable logging at runtime > --------------------------------- > > Key: AXIS2C-1460 > URL: https://issues.apache.org/jira/browse/AXIS2C-1460 > Project: Axis2-C > Issue Type: Bug > Components: util > Affects Versions: 1.6.0 > Environment: Binary distribution of Axis2C (1.6.0) deployed on WindowsXP2002/SP3 > Reporter: Bojan Komazec > Priority: Minor > Fix For: 1.7.0 > > Attachments: AXIS2C-1460-log_enabled.patch > > > Function axutil_env_enable_log sets > env->log_enabled > but > env->log->enabled > is tested in functions that write to file (like axutil_log_impl_log_debug). > Disabling logging via axutil_env_enable_log actually does not affect logging. > Example code: > axutil_env_t* env = axutil_env_create_all(szLogFilePath, AXIS2_LOG_LEVEL_TRACE); > // logging is enabled by default > AXIS2_LOG_DEBUG_MSG(env->log, "test 1"); // appears in log file > if(axutil_env_enable_log(env, AXIS2_FALSE) != AXIS2_SUCCESS) > { > // handle error > } > AXIS2_LOG_DEBUG_MSG(env->log, "test 2"); // appears in log file > Using > env->log->enabled = AXIS2_FALSE; > instead of > > axutil_env_enable_log(env, AXIS2_FALSE); > does the job. > axutil_env_enable_log should maybe set axutil_log's member : > env->log->enabled = enable; > I think that keeping the same information ("Is logging enabled") both in > axutil_env and axutil_log structures introduces redundancy. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: c-dev-unsubscribe@axis.apache.org For additional commands, e-mail: c-dev-help@axis.apache.org