SlideShare ist ein Scribd-Unternehmen logo
1 von 25
Connect the Dots: Logging and Exception Handling
April 27, 2019
Bangalore MuleSoft Meetup Group
Agenda
2
09:30PM – 10:00AM – Introductions
10:00PM - 12:00PM – Common Exception Handling & Common Logging
12:00PM - 12:30PM – Q&A
12:30PM - 12:45PM – Open Floor, Suggestions for Future Topics and Speakers
12:45PM - 01:30PM – Lunch
Agenda
Introductions
About the organizer :
– Gaurav – Senior Application Developer, Accenture
– D. Rajesh Kumar – Senior Technology Architect , TCS
Partner:
All contents © MuleSoft Inc.
All contents © MuleSoft Inc.
Introductions
5
Introduce yourselves !
– Name
– Background
• What’s your experience with Anypoint platform?
• Why are you here ? Expectations?
Common Logging and Exception
For any integration, In order to facilitate service request tracking and incident
management it is required to have an effective logging and exception handling solution.
Within in MULESOFT, various components involved based on various deployment
patterns..
Standard logger
JSON logger
Cloud hub logger and supporting tools like.. Alerting, monitoring and email
notifications..
End of the day , its essential to have some log aggregation tools.. For example Splunk,
ELK and service incident management tool like SNOW, Remedy force..
Common Logging and Exception
Best practices recommended:
• Categorize the logs: Traceable, audit, exception logs..
• Separate the flows to for exception logs with logic (for example: business exceptions, data
validations, technical issues..)
• Have standard CDM format for logs based on the category and follows same for all the
integrations
• Handle exceptions and logs in the common project and have integration logic with in the
common project.
• Usage of correlation id / message id / business transaction id
• Define log related flows are Async
• Possible use MQ to avoid data loss and data consistency
• Logging steps @critical places
Mule 4 Logging
• The importance of logging
• Logging bad practice
• Best practices with logging
• Log4j 2
• Logging to different target systems
• Common Exception Handling
More Than Logging
9
• System visibility
• System traceability
• Supportability
• Debugging
Log In First Place
10
• No logging standards
• Hard coding
• Empty loggers
• Beware: CloudHub logs are limited by size
• 100MB or 30 days, whichever comes first
Bad Practice
Demo
Logging Bad Practice
12
• Standards, standards, standards
• JSON
• Key-value pairs
• Other formats
• Informative messages
• Visibility into the system
• Enhance debugging
• Before and after external system calls
• Request identifier
• Trace transaction from end to end
• Ability to calculate latency
Best Practices
13
• Dynamic error messages
• Persisting logs to a system
• Maintain historical logs
• Allows non-technical users to access and
support applications
• Not too much logging, not too little
Best Practices
LOG : (prefix :string, value :any)
Returns the specified value and also logs the value in the DataWeave representation with the specified
prefix.
Transform :
%dw 2.0
output application/json
var data={
"week" : ["Sunday","Monday"]
}
---
{
isPresent : log("logging in the array", data.week contains vars.lookup)
}
Console :
logging in the array - true
DataWeave Logging
Demo
Logging Best Practices
Demo
Common Exception Handling
All contents © MuleSoft Inc.
Quiz
15
Winners will receive a gift
What are the 5 different logging levels that the standard
MuleSoft Logger Component uses?
Giveaway!
Learn all about Mule 4 and more!
Resources to learn
All contents © MuleSoft Inc.
MuleSoft U
20
• Free!
• Self-paced HTML-format courses with step-by-step instructions to go
deep on any topic.
• Available courses:
- NEW - Development fundamentals (Mule 3 and 4)
- NEW – Mule 4 for Mule 3 users
- Flow Design
- Getting started with Anypoint Platform (Mule 3 and 4)
Register for MuleSoft U at
https://training.mulesoft.com/category/mulesoftu
All contents © MuleSoft Inc.
Instructor-led training
21
• 1 to 5 days, in person or online
• 12 available courses
• For all profiles: developers, architects, admins, IT ops, managers
See all the learning paths available and register for a class at
https://training.mulesoft.com
Win 1 of 5 free instructor-led training courses by participating in our
trivia later tonight!
All contents © MuleSoft Inc.
More certifications to validate your skills
22
• Confirm mastery of concepts
• Achieve industry recognition
• Differentiate yourself in the marketplace
– MCD – Level 1 (Mule 4) + Level 1 (Mule 4) DELTA
– MCD – Integration and API Associate
– MCD – API Design Associate
– MCD – Integration Professional (Mule 3)
– MuleSoft Certified Platform Architect – Level 1
– MuleSoft Certified Integration Architect – Level 1
QA & open discussion
All contents © MuleSoft Inc.
Stay connected
24
Stay connected with Mule 4
Twitter: https:// twitter.com/Mulesoft
Linkedin: https://www.linkedin.com/groups/6936034 /
Facebook: https ://www.facebook.com/groups/Mulesoft/
Thank you !
See you next time
Please send topic suggestions to the organizer

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Warsaw mulesoft meetup #9 mastering integration with salesforce
Warsaw mulesoft meetup #9 mastering integration with salesforceWarsaw mulesoft meetup #9 mastering integration with salesforce
Warsaw mulesoft meetup #9 mastering integration with salesforce
 
MuleSoft CloudHub API Versioning
MuleSoft CloudHub API VersioningMuleSoft CloudHub API Versioning
MuleSoft CloudHub API Versioning
 
Hyd MuleSoft-Meetup-May 29,2021 | Migrating Mule 3 Java related code to Mule 4
Hyd MuleSoft-Meetup-May 29,2021 | Migrating Mule 3 Java related code to Mule 4Hyd MuleSoft-Meetup-May 29,2021 | Migrating Mule 3 Java related code to Mule 4
Hyd MuleSoft-Meetup-May 29,2021 | Migrating Mule 3 Java related code to Mule 4
 
Indore MuleSoft Meetup #4 : Demystifying Error Handling & Snowflake Integration
Indore MuleSoft Meetup #4 : Demystifying Error Handling & Snowflake IntegrationIndore MuleSoft Meetup #4 : Demystifying Error Handling & Snowflake Integration
Indore MuleSoft Meetup #4 : Demystifying Error Handling & Snowflake Integration
 
Warsaw MuleSoft Meetup #6 - CI/CD
Warsaw MuleSoft Meetup  #6 - CI/CDWarsaw MuleSoft Meetup  #6 - CI/CD
Warsaw MuleSoft Meetup #6 - CI/CD
 
NYC MuleSoft Meetup 2019 Q2- MuleSoft for Mobile Applications
NYC MuleSoft Meetup 2019 Q2- MuleSoft for Mobile ApplicationsNYC MuleSoft Meetup 2019 Q2- MuleSoft for Mobile Applications
NYC MuleSoft Meetup 2019 Q2- MuleSoft for Mobile Applications
 
MuleSoft Meetup Bangalore - March 6 2021
MuleSoft Meetup Bangalore - March 6 2021MuleSoft Meetup Bangalore - March 6 2021
MuleSoft Meetup Bangalore - March 6 2021
 
Ahmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalerts
Ahmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalertsAhmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalerts
Ahmadabad mule soft_meetup_11_october_2020_errorhanlingandmonitoringalerts
 
Meetup bangalore-may22nd2021
Meetup bangalore-may22nd2021Meetup bangalore-may22nd2021
Meetup bangalore-may22nd2021
 
MuleSoft meetup_sg_no2_may19
MuleSoft meetup_sg_no2_may19MuleSoft meetup_sg_no2_may19
MuleSoft meetup_sg_no2_may19
 
MuleSoft meetup__houston #13
MuleSoft meetup__houston #13MuleSoft meetup__houston #13
MuleSoft meetup__houston #13
 
MuleSoft Manchester Meetup #5 slides 20th May 2021
MuleSoft Manchester Meetup #5 slides 20th May 2021MuleSoft Manchester Meetup #5 slides 20th May 2021
MuleSoft Manchester Meetup #5 slides 20th May 2021
 
Manchester Meetup #3
Manchester Meetup #3Manchester Meetup #3
Manchester Meetup #3
 
Managing APIs with MuleSoft
Managing APIs with MuleSoftManaging APIs with MuleSoft
Managing APIs with MuleSoft
 
MuleSoft Meetup Charlotte 2 - 2019
MuleSoft Meetup Charlotte 2 - 2019MuleSoft Meetup Charlotte 2 - 2019
MuleSoft Meetup Charlotte 2 - 2019
 
Caching strategies in MuleSoft
Caching strategies in MuleSoftCaching strategies in MuleSoft
Caching strategies in MuleSoft
 
#3 calicut meetup - understanding slb, dlb and web sockets
#3   calicut meetup - understanding slb, dlb and web sockets#3   calicut meetup - understanding slb, dlb and web sockets
#3 calicut meetup - understanding slb, dlb and web sockets
 
Clustering, Server setup and Hybrid deployment setup using Anypoint Runtime M...
Clustering, Server setup and Hybrid deployment setup using Anypoint Runtime M...Clustering, Server setup and Hybrid deployment setup using Anypoint Runtime M...
Clustering, Server setup and Hybrid deployment setup using Anypoint Runtime M...
 
Nagpur Mulesoft Meetup on CICD using Jenkins
Nagpur Mulesoft Meetup on CICD using JenkinsNagpur Mulesoft Meetup on CICD using Jenkins
Nagpur Mulesoft Meetup on CICD using Jenkins
 
MuleSoft Nashik Virtual Meetup#4 - Implementing CI/CD pipeline for deploying ...
MuleSoft Nashik Virtual Meetup#4 - Implementing CI/CD pipeline for deploying ...MuleSoft Nashik Virtual Meetup#4 - Implementing CI/CD pipeline for deploying ...
MuleSoft Nashik Virtual Meetup#4 - Implementing CI/CD pipeline for deploying ...
 

Ähnlich wie mulesoft meetup @ bangalore

Mule soft meetup_-_finland_september_25th__2020 v2.0
Mule soft meetup_-_finland_september_25th__2020 v2.0Mule soft meetup_-_finland_september_25th__2020 v2.0
Mule soft meetup_-_finland_september_25th__2020 v2.0
D.Rajesh Kumar
 

Ähnlich wie mulesoft meetup @ bangalore (20)

Mulesoft meetup 9thmay Thiruvananthapuram
Mulesoft meetup 9thmay ThiruvananthapuramMulesoft meetup 9thmay Thiruvananthapuram
Mulesoft meetup 9thmay Thiruvananthapuram
 
Delhi MuleSoft Meetup - 19 march2022
Delhi MuleSoft Meetup - 19 march2022Delhi MuleSoft Meetup - 19 march2022
Delhi MuleSoft Meetup - 19 march2022
 
São Paulo MuleSoft Meetup - 31 Jan
São Paulo MuleSoft Meetup - 31 JanSão Paulo MuleSoft Meetup - 31 Jan
São Paulo MuleSoft Meetup - 31 Jan
 
Cracow MuleSoft Meetup #1
Cracow MuleSoft Meetup #1Cracow MuleSoft Meetup #1
Cracow MuleSoft Meetup #1
 
Learn mulesoft from scratch
Learn mulesoft from scratchLearn mulesoft from scratch
Learn mulesoft from scratch
 
MuleSoft São Paulo Meetup #3 - 18 Jun
MuleSoft São Paulo Meetup #3 - 18 JunMuleSoft São Paulo Meetup #3 - 18 Jun
MuleSoft São Paulo Meetup #3 - 18 Jun
 
Perth MuleSoft Meetup Feb 2019
Perth MuleSoft Meetup Feb 2019Perth MuleSoft Meetup Feb 2019
Perth MuleSoft Meetup Feb 2019
 
2022.06.23 - Sydney Meetup
2022.06.23 - Sydney Meetup2022.06.23 - Sydney Meetup
2022.06.23 - Sydney Meetup
 
MuleSoft Meetup Singapore - Reliable Messaging & RTF Operations
MuleSoft Meetup Singapore - Reliable Messaging & RTF OperationsMuleSoft Meetup Singapore - Reliable Messaging & RTF Operations
MuleSoft Meetup Singapore - Reliable Messaging & RTF Operations
 
Second Caracas MuleSoft Meetup Slides
Second Caracas MuleSoft Meetup SlidesSecond Caracas MuleSoft Meetup Slides
Second Caracas MuleSoft Meetup Slides
 
Mule soft meetup_-_finland_september_25th__2020 v2.0
Mule soft meetup_-_finland_september_25th__2020 v2.0Mule soft meetup_-_finland_september_25th__2020 v2.0
Mule soft meetup_-_finland_september_25th__2020 v2.0
 
Meetup Mulesoft Buenos Aires Noviembre 2018
Meetup Mulesoft Buenos Aires Noviembre 2018Meetup Mulesoft Buenos Aires Noviembre 2018
Meetup Mulesoft Buenos Aires Noviembre 2018
 
West Yorkshire Mulesoft Meetup #5
West Yorkshire Mulesoft Meetup #5West Yorkshire Mulesoft Meetup #5
West Yorkshire Mulesoft Meetup #5
 
DevOps and APIs: Great Alone, Better Together
DevOps and APIs: Great Alone, Better Together DevOps and APIs: Great Alone, Better Together
DevOps and APIs: Great Alone, Better Together
 
Melbourne Virtual MuleSoft Meetup April 2022
Melbourne Virtual MuleSoft Meetup April 2022Melbourne Virtual MuleSoft Meetup April 2022
Melbourne Virtual MuleSoft Meetup April 2022
 
Perth meetup Oct 2019
Perth meetup Oct 2019Perth meetup Oct 2019
Perth meetup Oct 2019
 
São Paulo MuleSoft Meetup - Deployments Models
São Paulo MuleSoft Meetup - Deployments ModelsSão Paulo MuleSoft Meetup - Deployments Models
São Paulo MuleSoft Meetup - Deployments Models
 
Design and Implementation: SCIM Automation using Anypoint Platform APIs
Design and Implementation: SCIM Automation using Anypoint Platform APIsDesign and Implementation: SCIM Automation using Anypoint Platform APIs
Design and Implementation: SCIM Automation using Anypoint Platform APIs
 
MuleSoft Manchester Meetup #2 slides 29th October 2019
MuleSoft Manchester Meetup #2 slides 29th October 2019MuleSoft Manchester Meetup #2 slides 29th October 2019
MuleSoft Manchester Meetup #2 slides 29th October 2019
 
Riyadh Meetup4- Sonarqube for Mule 4 Code review
Riyadh Meetup4- Sonarqube for Mule 4 Code reviewRiyadh Meetup4- Sonarqube for Mule 4 Code review
Riyadh Meetup4- Sonarqube for Mule 4 Code review
 

Mehr von D.Rajesh Kumar

Mule soft meetup_-_finland_july_11th__2020
Mule soft meetup_-_finland_july_11th__2020Mule soft meetup_-_finland_july_11th__2020
Mule soft meetup_-_finland_july_11th__2020
D.Rajesh Kumar
 

Mehr von D.Rajesh Kumar (20)

Meetup bangalore-sept5th 2020 (1)
Meetup bangalore-sept5th 2020 (1)Meetup bangalore-sept5th 2020 (1)
Meetup bangalore-sept5th 2020 (1)
 
Mule soft meetup_-_finland_july_11th__2020
Mule soft meetup_-_finland_july_11th__2020Mule soft meetup_-_finland_july_11th__2020
Mule soft meetup_-_finland_july_11th__2020
 
Bangalore mulesoft meetup#10
Bangalore mulesoft meetup#10Bangalore mulesoft meetup#10
Bangalore mulesoft meetup#10
 
Meetup bangalore 9_novupdated
Meetup bangalore 9_novupdatedMeetup bangalore 9_novupdated
Meetup bangalore 9_novupdated
 
Meetup bangalore aug31st2019
Meetup bangalore aug31st2019Meetup bangalore aug31st2019
Meetup bangalore aug31st2019
 
Meetup bangalore june29th2019
Meetup bangalore june29th2019Meetup bangalore june29th2019
Meetup bangalore june29th2019
 
Calico and container
Calico and containerCalico and container
Calico and container
 
Calico docker+ipam
Calico docker+ipamCalico docker+ipam
Calico docker+ipam
 
Calico architecture
Calico architectureCalico architecture
Calico architecture
 
Calico to secure host interfaces
Calico to secure host interfacesCalico to secure host interfaces
Calico to secure host interfaces
 
Calico and how interprets neutron api
Calico and how interprets neutron apiCalico and how interprets neutron api
Calico and how interprets neutron api
 
Calico with open stack and chef
Calico with open stack and chefCalico with open stack and chef
Calico with open stack and chef
 
Calico with open stack
Calico with open stackCalico with open stack
Calico with open stack
 
Calico with docker
Calico with dockerCalico with docker
Calico with docker
 
Object Store in Mule
Object Store in MuleObject Store in Mule
Object Store in Mule
 
Slack connector with in MULE
Slack connector with in MULESlack connector with in MULE
Slack connector with in MULE
 
MuleSoft Offers a Data Migration Solution
MuleSoft Offers a Data Migration SolutionMuleSoft Offers a Data Migration Solution
MuleSoft Offers a Data Migration Solution
 
Mule version-crowd highlights
Mule version-crowd highlightsMule version-crowd highlights
Mule version-crowd highlights
 
Mule ctf
Mule  ctfMule  ctf
Mule ctf
 
Sdlc with mule esb
Sdlc with mule esbSdlc with mule esb
Sdlc with mule esb
 

Kürzlich hochgeladen

EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Kürzlich hochgeladen (20)

Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 

mulesoft meetup @ bangalore

  • 1. Connect the Dots: Logging and Exception Handling April 27, 2019 Bangalore MuleSoft Meetup Group
  • 2. Agenda 2 09:30PM – 10:00AM – Introductions 10:00PM - 12:00PM – Common Exception Handling & Common Logging 12:00PM - 12:30PM – Q&A 12:30PM - 12:45PM – Open Floor, Suggestions for Future Topics and Speakers 12:45PM - 01:30PM – Lunch Agenda
  • 3. Introductions About the organizer : – Gaurav – Senior Application Developer, Accenture – D. Rajesh Kumar – Senior Technology Architect , TCS Partner: All contents © MuleSoft Inc.
  • 4. All contents © MuleSoft Inc. Introductions 5 Introduce yourselves ! – Name – Background • What’s your experience with Anypoint platform? • Why are you here ? Expectations?
  • 5. Common Logging and Exception For any integration, In order to facilitate service request tracking and incident management it is required to have an effective logging and exception handling solution. Within in MULESOFT, various components involved based on various deployment patterns.. Standard logger JSON logger Cloud hub logger and supporting tools like.. Alerting, monitoring and email notifications.. End of the day , its essential to have some log aggregation tools.. For example Splunk, ELK and service incident management tool like SNOW, Remedy force..
  • 6. Common Logging and Exception Best practices recommended: • Categorize the logs: Traceable, audit, exception logs.. • Separate the flows to for exception logs with logic (for example: business exceptions, data validations, technical issues..) • Have standard CDM format for logs based on the category and follows same for all the integrations • Handle exceptions and logs in the common project and have integration logic with in the common project. • Usage of correlation id / message id / business transaction id • Define log related flows are Async • Possible use MQ to avoid data loss and data consistency • Logging steps @critical places
  • 8. • The importance of logging • Logging bad practice • Best practices with logging • Log4j 2 • Logging to different target systems • Common Exception Handling More Than Logging
  • 9. 9 • System visibility • System traceability • Supportability • Debugging Log In First Place
  • 10. 10 • No logging standards • Hard coding • Empty loggers • Beware: CloudHub logs are limited by size • 100MB or 30 days, whichever comes first Bad Practice
  • 12. 12 • Standards, standards, standards • JSON • Key-value pairs • Other formats • Informative messages • Visibility into the system • Enhance debugging • Before and after external system calls • Request identifier • Trace transaction from end to end • Ability to calculate latency Best Practices
  • 13. 13 • Dynamic error messages • Persisting logs to a system • Maintain historical logs • Allows non-technical users to access and support applications • Not too much logging, not too little Best Practices
  • 14. LOG : (prefix :string, value :any) Returns the specified value and also logs the value in the DataWeave representation with the specified prefix. Transform : %dw 2.0 output application/json var data={ "week" : ["Sunday","Monday"] } --- { isPresent : log("logging in the array", data.week contains vars.lookup) } Console : logging in the array - true DataWeave Logging
  • 17. All contents © MuleSoft Inc. Quiz 15 Winners will receive a gift
  • 18. What are the 5 different logging levels that the standard MuleSoft Logger Component uses? Giveaway!
  • 19. Learn all about Mule 4 and more! Resources to learn
  • 20. All contents © MuleSoft Inc. MuleSoft U 20 • Free! • Self-paced HTML-format courses with step-by-step instructions to go deep on any topic. • Available courses: - NEW - Development fundamentals (Mule 3 and 4) - NEW – Mule 4 for Mule 3 users - Flow Design - Getting started with Anypoint Platform (Mule 3 and 4) Register for MuleSoft U at https://training.mulesoft.com/category/mulesoftu
  • 21. All contents © MuleSoft Inc. Instructor-led training 21 • 1 to 5 days, in person or online • 12 available courses • For all profiles: developers, architects, admins, IT ops, managers See all the learning paths available and register for a class at https://training.mulesoft.com Win 1 of 5 free instructor-led training courses by participating in our trivia later tonight!
  • 22. All contents © MuleSoft Inc. More certifications to validate your skills 22 • Confirm mastery of concepts • Achieve industry recognition • Differentiate yourself in the marketplace – MCD – Level 1 (Mule 4) + Level 1 (Mule 4) DELTA – MCD – Integration and API Associate – MCD – API Design Associate – MCD – Integration Professional (Mule 3) – MuleSoft Certified Platform Architect – Level 1 – MuleSoft Certified Integration Architect – Level 1
  • 23. QA & open discussion
  • 24. All contents © MuleSoft Inc. Stay connected 24 Stay connected with Mule 4 Twitter: https:// twitter.com/Mulesoft Linkedin: https://www.linkedin.com/groups/6936034 / Facebook: https ://www.facebook.com/groups/Mulesoft/
  • 25. Thank you ! See you next time Please send topic suggestions to the organizer