Re: [Dev] LogViewerStub returns null Logevent element in G-reg 5.0.0

2014-07-07 Thread Amani Soysa
Hi

Looks like CARBON_MEMORY appender is not properly configured in GREG.
Please make sure following properties are there in log4j.properties file

# The memory appender for logging
log4j.appender.CARBON_MEMORY=
*org.wso2.carbon.logging.appender.CarbonMemoryAppender*
log4j.appender.CARBON_MEMORY.bufferSize=2000
log4j.appender.CARBON_MEMORY.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout
# ConversionPattern will be overridden by the configuration setting in the
DB
log4j.appender.CARBON_MEMORY.layout.ConversionPattern=TID: [%T] [%S] [%d]
%P%5p {%c} - %x %m {%c}%n
log4j.appender.CARBON_MEMORY.layout.TenantPattern=%U%@%D [%T] [%S]
log4j.appender.CARBON_MEMORY.columnList=%T,%S,%A,%d,%c,%p,%m,%H,%I,%Stacktrace
log4j.appender.CARBON_MEMORY.threshold=DEBUG

and also* CARBON_MEMORY* is added to the root logger.


On Mon, Jul 7, 2014 at 5:24 PM, Denuwanthi De Silva denuwan...@wso2.com
wrote:

 Hi,

 G-reg 5.0.0 SNAPSHOT display 'null' in management console, when try to
 view 'System logs', with the following message:
 *The log must be configured to use the
 org.wso2.carbon.logging.core.util.MemoryAppender to view entries through
 the admin console*

 The corresponding test case, shows that it is due to 'LogViewerStub'
 returning a null 'Logevent', when trying to access system logs.

 The JIRA issue can be found in [1]

 [1].https://wso2.org/jira/browse/REGISTRY-2219



 Thanks,
 --
 Denuwanthi De Silva
 Software Engineer;
 WSO2 Inc.; http://wso2.com,
 Email: denuwan...@wso2.com



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




-- 
Amani Soysa
Associate Technical Lead
Mobile: +94772325528
WSO2, Inc. | http://wso2.com/
Lean . Enterprise . Middleware
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


Re: [Dev] LogViewerStub returns null Logevent element in G-reg 5.0.0

2014-07-07 Thread Denuwanthi De Silva
Hi Amani,

Thanks for the clarification. It's working fine now.
Yes, as you mentioned the CARBON_MEMORY appender was not properly
configured in GREG due to an ES log4j.properties file overriding.

Thanks,


On Tue, Jul 8, 2014 at 7:02 AM, Amani Soysa am...@wso2.com wrote:

 Hi

 Looks like CARBON_MEMORY appender is not properly configured in GREG.
 Please make sure following properties are there in log4j.properties file

 # The memory appender for logging
 log4j.appender.CARBON_MEMORY=
 *org.wso2.carbon.logging.appender.CarbonMemoryAppender*
 log4j.appender.CARBON_MEMORY.bufferSize=2000

 log4j.appender.CARBON_MEMORY.layout=org.wso2.carbon.utils.logging.TenantAwarePatternLayout
 # ConversionPattern will be overridden by the configuration setting in the
 DB
 log4j.appender.CARBON_MEMORY.layout.ConversionPattern=TID: [%T] [%S] [%d]
 %P%5p {%c} - %x %m {%c}%n
 log4j.appender.CARBON_MEMORY.layout.TenantPattern=%U%@%D [%T] [%S]

 log4j.appender.CARBON_MEMORY.columnList=%T,%S,%A,%d,%c,%p,%m,%H,%I,%Stacktrace
 log4j.appender.CARBON_MEMORY.threshold=DEBUG

 and also* CARBON_MEMORY* is added to the root logger.


 On Mon, Jul 7, 2014 at 5:24 PM, Denuwanthi De Silva denuwan...@wso2.com
 wrote:

 Hi,

 G-reg 5.0.0 SNAPSHOT display 'null' in management console, when try to
 view 'System logs', with the following message:
 *The log must be configured to use the
 org.wso2.carbon.logging.core.util.MemoryAppender to view entries through
 the admin console*

 The corresponding test case, shows that it is due to 'LogViewerStub'
 returning a null 'Logevent', when trying to access system logs.

 The JIRA issue can be found in [1]

 [1].https://wso2.org/jira/browse/REGISTRY-2219



 Thanks,
 --
 Denuwanthi De Silva
 Software Engineer;
 WSO2 Inc.; http://wso2.com,
 Email: denuwan...@wso2.com



 ___
 Dev mailing list
 Dev@wso2.org
 http://wso2.org/cgi-bin/mailman/listinfo/dev




 --
 Amani Soysa
 Associate Technical Lead
 Mobile: +94772325528
 WSO2, Inc. | http://wso2.com/
 Lean . Enterprise . Middleware




-- 
Denuwanthi De Silva
Software Engineer;
WSO2 Inc.; http://wso2.com,
Email: denuwan...@wso2.com
___
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev