Xue,
   Hi, good question - you have 4 options (unchanged, do your own code 
changes/library, use the SLF4J library from Luke (includes MDC/Marker support) 
or use the AOP (WIP) wrapper on the SLF4J library - it uses aspects to (so-far) 
add ENTRY/EXIT marker (labelled) logs for each function call in scope.

Using the library is optional - the goal is to reduce the amount of work teams 
need to do to adhere to the new MDC/Marker specification for Casablanca.  The 
example RI below is a reference of how to use the library and a place for the 
logging team to exercise every MDC and test transactions without having to rely 
on real ONAP components - its own integration test suite.

    There are developer details on using the libraries (pom.xml edits, spring 
AOP additions) and how to deploy the logdemo pod alongside onap that demos 
using the libraries
https://wiki.onap.org/pages/viewpage.action?pageId=28378955#ONAPApplicationLoggingSpecificationv1.2(Casablanca)-DeveloperGuide
    The code is ready for use as we finish the library (java is most up to date 
for now, python is in progress)
https://git.onap.org/logging-analytics/tree/reference
The demo RI stack
oom kubernetes chart
https://git.onap.org/logging-analytics/tree/reference/logging-kubernetes
docker build
https://git.onap.org/logging-analytics/tree/reference/logging-docker-root/logging-docker-demo
war
https://git.onap.org/logging-analytics/tree/reference/logging-demo
aop library jar (wraps slfj4j library jar)
https://git.onap.org/logging-analytics/tree/reference/logging-library
slf4j library jar
https://git.onap.org/logging-analytics/tree/reference/logging-slf4j

thank you
/michael


From: Gao, Xue <[email protected]>
Sent: Tuesday, July 31, 2018 10:35 AM
To: [email protected]; Michael O'Brien <[email protected]>
Cc: Ngueko, Gervais-Martial <[email protected]>
Subject: [onap-discuss][clamp ][LOG]ONAP Application Logging Specification v1.2

Hello Obrien,

>From the wiki page of ONAP Application Logging Specification v1.2, I have seen 
>the source code for org.onap.logging-analytics:logging-analytics project.

May I ask, are we suppose to use that project as the logging framework, or it 
is just an example and each component can create their own way of logging. Also 
is there a plan to create a standard library, so that all ONAP components can 
just use it?

Kr,

Xue

This message and the information contained herein is proprietary and 
confidential and subject to the Amdocs policy statement,

you may review at https://www.amdocs.com/about/email-disclaimer 
<https://www.amdocs.com/about/email-disclaimer>

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#11587): https://lists.onap.org/g/onap-discuss/message/11587
Mute This Topic: https://lists.onap.org/mt/23903990/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to