[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wsf-c-dev
Subject:    Re: [Dev] Logging in CEP components is different from other products
From:       Mohanadarshan Vivekanandalingam <mohan () wso2 ! com>
Date:       2013-09-30 18:27:07
Message-ID: CAHf1eqSFpNEsB1wgHz=P1ksO2-SnvatxKZgis6RX+nCnOaa88Q () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Nirmal,

Yes, it only contains the class name with inside curly braces not the full
class path name .. because if we put the complete name it is very difficult
to grep the information from the console but carbon log contains the full
class path name.. (If it is needed then we can refer that). And FYI, not
all the products contains the same logging pattern..

ESB only contains class name as prefix like below:

 [2013-09-30 23:27:00,794]  INFO - EmbeddedRegistryService Configured
Registry in 46ms
[2013-09-30 23:27:00,873]  INFO - RegistryCoreServiceComponent Registry
Mode    : READ-WRITE
[2013-09-30 23:27:02,231]  INFO - ClusterBuilder Clustering has been
disabled
[2013-09-30 23:27:02,898]  INFO - LandingPageWebappDeployer Deployed
product landing page webapp:
StandardEngine[Catalina].StandardHost[localhost].StandardContext[/home]
[2013-09-30 23:27:02,939]  INFO - PassThroughHttpSSLSender Initializing
Pass-through HTTP/S Sender...
[2013-09-30 23:27:02,941]  INFO - PassThroughHttpSSLSender Loading Identity
Keystore from : repository/resources/security/wso2carbon.jks
[2013-09-30 23:27:02,979]  INFO - PassThroughHttpSSLSender Loading Trust
Keystore from : repository/resources/security/client-truststore.jks


But other products have a complete class path prefix (eg: AS):

[2013-09-30 23:27:28,099]  INFO
{org.wso2.carbon.core.internal.CarbonCoreActivator} -  Starting WSO2
Carbon...
[2013-09-30 23:27:28,114]  INFO
{org.wso2.carbon.core.internal.CarbonCoreActivator} -  Operating System :
Linux 3.9.0-030900-generic, amd64
[2013-09-30 23:27:28,114]  INFO
{org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Home        :
/usr/local/jdk1.6.0_38/jre
[2013-09-30 23:27:28,114]  INFO
{org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Version     :
1.6.0_38
[2013-09-30 23:27:28,114]  INFO
{org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java VM          :
Java HotSpot(TM) 64-Bit Server VM 20.13-b02,Sun Microsystems Inc.


But CEP has the logging as shown below.

[2013-09-30 23:04:44,768]  INFO - {CarbonCoreActivator}  Starting WSO2
Carbon...
[2013-09-30 23:04:44,770]  INFO - {CarbonCoreActivator}  Operating System :
Linux 3.9.0-030900-generic, amd64
[2013-09-30 23:04:44,770]  INFO - {CarbonCoreActivator}  Java Home        :
/usr/local/jdk1.6.0_38/jre
[2013-09-30 23:04:44,771]  INFO - {CarbonCoreActivator}  Java Version     :
1.6.0_38
[2013-09-30 23:04:44,771]  INFO - {CarbonCoreActivator}  Java VM          :
Java HotSpot(TM) 64-Bit Server VM 20.13-b02,Sun Microsystems Inc.

Is there any issue on this?? I don't see any wrong on this..

Regards,
Mohan








On Mon, Sep 30, 2013 at 10:10 AM, Nirmal Fernando <nirmal@wso2.com> wrote:

> Hi All,
>
> In CEP logs look like:
>
> INFO - {EventBuilderDeployer} Event Builder deployed successfully and in
> active state ...
>
> Seems log4j.appender.CARBON_CONSOLE is different.
>
> --
>
> Thanks & regards,
> Nirmal
>
> Senior Software Engineer- Platform Technologies Team, WSO2 Inc.
> Mobile: +94715779733
> Blog: http://nirmalfdo.blogspot.com/
>
>


-- 
*V. Mohanadarshan*
*Software Engineer,*
*Data Technologies Team,*
*WSO2, Inc. http://wso2.com *
*lean.enterprise.middleware.*
*
*
email: mohan@wso2.com
phone:(+94) 771117673

[Attachment #5 (text/html)]

<div dir="ltr">Hi Nirmal,<div><br></div><div style>Yes, it only contains the class \
name with inside curly braces not the full class path name .. because if we put the \
complete name it is very difficult to grep the information from the console but \
carbon log contains the full class path name.. (If it is needed then we can refer \
that). And FYI, not all the products contains the same logging pattern..</div> <div \
style><br></div><div style>ESB only contains class name as prefix like \
below:</div><div style><br></div><div style> [2013-09-30 23:27:00,794]  INFO - \
EmbeddedRegistryService Configured Registry in 46ms</div><div>[2013-09-30 \
23:27:00,873]  INFO - RegistryCoreServiceComponent Registry Mode    : \
READ-WRITE</div> <div>[2013-09-30 23:27:02,231]  INFO - ClusterBuilder Clustering has \
been disabled</div><div>[2013-09-30 23:27:02,898]  INFO - LandingPageWebappDeployer \
Deployed product landing page webapp: \
StandardEngine[Catalina].StandardHost[localhost].StandardContext[/home]</div> \
<div>[2013-09-30 23:27:02,939]  INFO - PassThroughHttpSSLSender Initializing \
Pass-through HTTP/S Sender...</div><div>[2013-09-30 23:27:02,941]  INFO - \
PassThroughHttpSSLSender Loading Identity Keystore from : \
repository/resources/security/wso2carbon.jks</div> <div>[2013-09-30 23:27:02,979]  \
INFO - PassThroughHttpSSLSender Loading Trust Keystore from : \
repository/resources/security/client-truststore.jks</div><div style><br></div><div \
style><br></div><div style>But other products have a complete class path prefix (eg: \
AS):</div> <div style><br></div><div style><div>[2013-09-30 23:27:28,099]  INFO \
{org.wso2.carbon.core.internal.CarbonCoreActivator} -  Starting WSO2 \
Carbon...</div><div>[2013-09-30 23:27:28,114]  INFO \
{org.wso2.carbon.core.internal.CarbonCoreActivator} -  Operating System : Linux \
3.9.0-030900-generic, amd64</div> <div>[2013-09-30 23:27:28,114]  INFO \
{org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Home        : \
/usr/local/jdk1.6.0_38/jre</div><div>[2013-09-30 23:27:28,114]  INFO \
{org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java Version     : \
1.6.0_38</div> <div>[2013-09-30 23:27:28,114]  INFO \
{org.wso2.carbon.core.internal.CarbonCoreActivator} -  Java VM          : Java \
HotSpot(TM) 64-Bit Server VM 20.13-b02,Sun Microsystems \
Inc.</div><div><br></div><div><br></div><div style> But CEP has the logging as shown \
below.</div><div style><br></div><div style><div>[2013-09-30 23:04:44,768]  INFO - \
{CarbonCoreActivator}  Starting WSO2 Carbon...</div><div>[2013-09-30 23:04:44,770]  \
INFO - {CarbonCoreActivator}  Operating System : Linux 3.9.0-030900-generic, \
amd64</div> <div>[2013-09-30 23:04:44,770]  INFO - {CarbonCoreActivator}  Java Home   \
: /usr/local/jdk1.6.0_38/jre</div><div>[2013-09-30 23:04:44,771]  INFO - \
{CarbonCoreActivator}  Java Version     : 1.6.0_38</div><div>[2013-09-30 \
23:04:44,771]  INFO - {CarbonCoreActivator}  Java VM          : Java HotSpot(TM) \
64-Bit Server VM 20.13-b02,Sun Microsystems Inc.</div> <div><br></div><div style>Is \
there any issue on this?? I don&#39;t see any wrong on this..</div><div \
style><br></div><div style>Regards,</div><div \
style>Mohan</div><div><br></div><div><br></div><div><br></div></div><div><br> \
</div></div><div style><br></div><div style> </div></div><div \
class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 30, 2013 at 10:10 \
AM, Nirmal Fernando <span dir="ltr">&lt;<a href="mailto:nirmal@wso2.com" \
target="_blank">nirmal@wso2.com</a>&gt;</span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr"><div>Hi All,<br><br>In CEP logs look \
like:<br><br>INFO - {EventBuilderDeployer} Event Builder deployed successfully and in \
active state ...<br> <br></div><div>Seems log4j.appender.CARBON_CONSOLE is \
different.<span class="HOEnZb"><font color="#888888"><br>

</font></span></div><span class="HOEnZb"><font color="#888888"><br><div><div><div>-- \
<br><div dir="ltr"><br>Thanks &amp; regards,<br>Nirmal<br><br>Senior Software \
Engineer- Platform Technologies Team, WSO2 Inc.<br>Mobile: <a \
                href="tel:%2B94715779733" value="+94715779733" \
                target="_blank">+94715779733</a><br>
Blog: <a href="http://nirmalfdo.blogspot.com/" \
target="_blank">http://nirmalfdo.blogspot.com/</a><br>

<br></div>
</div></div></div></font></span></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><font \
color="#444444" face="georgia, serif"><b style="background-color:rgb(255,255,255)">V. \
Mohanadarshan</b></font><div><div><font color="#444444" face="times new roman, serif" \
size="1"><b style="background-color:rgb(255,255,255)">Software \
Engineer,</b></font></div> <div><font color="#444444" face="times new roman, serif" \
size="1"><b style="background-color:rgb(255,255,255)">Data Technologies \
Team,</b></font></div><div><font color="#444444" face="times new roman, serif" \
size="1"><b style="background-color:rgb(255,255,255)">WSO2, Inc. <a \
href="http://wso2.com" target="_blank">http://wso2.com</a> </b></font></div> \
<div><font color="#444444" face="times new roman, serif" size="1"><b \
style="background-color:rgb(255,255,255)">lean.enterprise.middleware.</b></font></div></div><div><font \
color="#444444" face="georgia, serif"><b \
style="background-color:rgb(255,255,255)"><br> </b></font></div><div><font \
style="background-color:rgb(255,255,255)" color="#444444" size="1">email: <a \
href="mailto:mohan@wso2.com" target="_blank">mohan@wso2.com</a> \
</font></div><div><font style="background-color:rgb(255,255,255)" color="#444444" \
size="1">phone:(+94) 771117673</font></div> </div>
</div>



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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic