We use SLF4J as the common logging API in the platform. On Fri, Oct 28, 2016 at 3:17 PM, Sajith Kariyawasam <[email protected]> wrote:
> > > On Mon, Oct 24, 2016 at 10:05 AM, Kishanthan Thangarajah < > [email protected]> wrote: > >> Use the below dependency and refer the link more info - >> https://docs.wso2.com/display/Carbon500/Configuring+the+Logging+Framework >> >> <dependency> >> <groupId>org.ops4j.pax.logging</groupId> >> <artifactId>pax-logging-api</artifactId> >> <version>1.9.0</version> >> </dependency> >> >> > Once this is configured, both Commons logging and SLF4j logging will be > available. > Out of those what API should be used in the Java code to do the logging ? > > for eg, > private static final Logger log = LoggerFactory.getLogger(...); vs > private static final Log log = LogFactory.getLog(...); > > IMO, its better to follow a common pattern to keep the code consistent > across modules. > > >> On Sat, Oct 22, 2016 at 10:37 AM, Fazlan Nazeem <[email protected]> wrote: >> >>> Hi Jayanga, >>> >>> What dependency should we use in order to import the >>> "org.apache.commons.logging" classes going forward? Previously it was >>> imported via >>> >>> >>> <groupId>org.wso2.carbon</groupId> >>> <artifactId>org.wso2.carbon.logging</artifactId> >>> >>> >>> >>> On Fri, Oct 21, 2016 at 3:26 PM, Jayanga Dissanayake <[email protected]> >>> wrote: >>> >>>> Hi Fazlan, >>>> >>>> It was moved into "base" [1] component to make the pax logging >>>> initialized at an early stage befoe the other bundles are activated. >>>> This was due to some unexpected config reset due to the OSGi Managed >>>> Service and ConfgiAdmin. >>>> >>>> We contributed a fix for this to pax-loggin and we no longer needed >>>> that implementation. >>>> >>>> [1] https://github.com/wso2/carbon-kernel/tree/v5.1.0/base/s >>>> rc/main/java/org/wso2/carbon/base/logging >>>> >>>> Thanks, >>>> Jayanga. >>>> >>>> >>>> *Jayanga Dissanayake* >>>> Associate Technical Lead >>>> WSO2 Inc. - http://wso2.com/ >>>> lean . enterprise . middleware >>>> email: [email protected] >>>> mobile: +94772207259 >>>> <http://wso2.com/signature> >>>> >>>> On Fri, Oct 21, 2016 at 3:00 PM, Fazlan Nazeem <[email protected]> >>>> wrote: >>>> >>>>> Hi all, >>>>> >>>>> Have we removed org.wso2.carbon.logging from carbon kernel 5.1.0? It's >>>>> there in 5.1.0-M2 but not in 5.1.0 release. Is there any reason for this? >>>>> >>>>> -- >>>>> Thanks & Regards, >>>>> >>>>> Fazlan Nazeem >>>>> >>>>> *Software Engineer* >>>>> >>>>> *WSO2 Inc* >>>>> Mobile : +94772338839 >>>>> <%2B94%20%280%29%20773%20451194> >>>>> [email protected] >>>>> >>>>> _______________________________________________ >>>>> Dev mailing list >>>>> [email protected] >>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>>>> >>>>> >>>> >>> >>> >>> -- >>> Thanks & Regards, >>> >>> Fazlan Nazeem >>> >>> *Software Engineer* >>> >>> *WSO2 Inc* >>> Mobile : +94772338839 >>> <%2B94%20%280%29%20773%20451194> >>> [email protected] >>> >> >> >> >> -- >> *Kishanthan Thangarajah* >> Technical Lead, >> Platform Technologies Team, >> WSO2, Inc. >> lean.enterprise.middleware >> >> Mobile - +94773426635 >> Blog - *http://kishanthan.wordpress.com >> <http://kishanthan.wordpress.com>* >> Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>* >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Sajith Kariyawasam > *Associate Tech Lead* > *WSO2 Inc.; http://wso2.com <http://wso2.com/>* > *Committer and PMC member, Apache Stratos * > *AMIE (SL)* > *Mobile: 0772269575* > -- *Kishanthan Thangarajah* Technical Lead, Platform Technologies Team, WSO2, Inc. lean.enterprise.middleware Mobile - +94773426635 Blog - *http://kishanthan.wordpress.com <http://kishanthan.wordpress.com>* Twitter - *http://twitter.com/kishanthan <http://twitter.com/kishanthan>*
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
