Importance of logs in custom development

Slides:



Advertisements
Similar presentations
Module 13: Performance Tuning. Overview Performance tuning methodologies Instance level Database level Application level Overview of tools and techniques.
Advertisements

Become a Panels Rockstar. Audience Survey Have you tried Panels? Are you a …. –Themer / Designer? –Developer / Code Junkie? –Information Architect?
Stata and logit recap. Topics Introduction to Stata – Files / directories – Stata syntax – Useful commands / functions Logistic regression analysis with.
PHYS 2020 Pseudocode. Real Programmers Program in Pencil!  You can save a lot of time if you approach programming in a methodical way.  1) Write a clear.
Chapter 1 - An Introduction to Computers and Problem Solving
Drupal Online Tutorial A Product of an ENGL 421 class at Purdue University Page 1.
© Janice Regan, CMPT 102, Sept CMPT 102 Introduction to Scientific Computer Programming The software development method algorithms.
My Application. What kind of Application? Desktop vs Web Easy to develop Less code writing Difficult to look after if several users(computers) uses. Installation.
Introduction to Systems Analysis and Design Trisha Cummings.
WaveMaker Visual AJAX Studio 4.0 Training Troubleshooting.
Python: An Introduction
Another PillowTalk Presentation  2004 Dynamic Systems, Inc. Business Intelligence: Analytical Reporting.
1 A Simple but Realistic Assembly Language for a Course in Computer Organization Eric Larson Moon Ok Kim Seattle University October 25, 2008.
SE: CHAPTER 7 Writing The Program
Forensic Drupal Debugging Dan Harris daneesia on drupal.org.
LETS GET GOING Research Data Management. Research Data Management Decisions making In this module, we’ll discuss how best to set up your research: Filing.
BMTRY 789 Lecture 11: Debugging Readings – Chapter 10 (3 rd Ed) from “The Little SAS Book” Lab Problems – None Homework Due – None Final Project Presentations.
The Software Development Process
 Registry itself is easy and straightforward in implementation  The objects of registry are actually complicated to store and manage  Objects of Registry.
PHP, Databases, and Cookies Dave Pease IDS496 12/2/2003
+ Logentries Is a Real-Time Log Analytics Service for Aggregating, Analyzing, and Alerting on Log Data from Microsoft Azure Apps and Systems MICROSOFT.
Debugging tools in Flash CIS 126. Debugging Flash provides several tools for testing ActionScript in your SWF files. –The Debugger, lets you find errors.
IE Developer Tools Jonathan Seitel Program Manager.
JavaScript Introduction and Background. 2 Web languages Three formal languages HTML JavaScript CSS Three different tasks Document description Client-side.
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////
What's New in Visual Studio 2010 Debugging Brian Peek Senior Consultant, ASPSOFT, Inc. Microsoft MVP - C#
CMon Application Monitor & Exception Manager. If I use CMon what benefits do I get? You can fix the application bugs easily. Fixing the errors in a short.
Drupal Basics May 30, 2012 By Sean Fitzpatrick. Sean Fitzpatrick | Welcome We're going to talk about Drupal We're going to keep it pretty.
1 April 14, Starting New Open Source Software Projects William Cohen NCSU CSC 591W April 14, 2008.
Using React, Drupal and Google Chrome to build an interactive kiosk + + =
The Ultimate SharePoint Admin Tool
Which development environment/ language?
Designing Documents, Slides, and Screens
Metrics of Software Quality
Topic: Python’s building blocks -> Variables, Values, and Types
A Playful Introduction to Programming by Jason R. Briggs
WWU Hackathon May 6 & 7.
Introduction to Eclipse
Business Intelligence 101
SOFTWARE TESTING OVERVIEW
What is the status from Ccavanue team
Welcome! The 2015 B-13 Data Collection webinar will begin in a few moments. Event number: Event password: 2015B13 To hear the presentation.
PYTHON: AN INTRODUCTION
The Pseudocode Programming Process
Walk-in-Work Answer in your Do-Now Log: Copy the sentence starter and finish the following sentence: People who have positive attitudes see the world as.
LESSON 20.
Lecture 2 Introduction to Programming
A portal interface to myGrid workflow technology
How To Sign In Or Login In Into Quicken Account In general, quicken login problem happens commonly and many users also experience complications while experiencing.
How to automate software with
PROGRAMMING METHODOLOGY
Introduction to Systems Analysis and Design
Promoting Self-Service
Web Site Analytics with Google Analytics
Debugging at Scale.
Training Module Introduction to the TB9100/P25 CG/P25 TAG Customer Service Software (CSS) Describes Release 3.95 for Trunked TB9100 and P25 TAG Release.
The structure of a Report & the process of writing a Report
Outline Chapter 2 (cont) OS Design OS structure
Program Design Language (PDL)
Debugging “Why you were up till 2AM”
Overview of the Lab 2 Assignment: Multicore Real-Time Tasks
Creating Your Power BI Reports With “Wow”
An Introduction to Debugging
Good document design saves time and money, reduces legal problems, and builds goodwill. A well-designed document looks inviting, friendly, and easy to.
Impossible problems.
How to debug a website using IE F12 tools
Chapter 4: Simulation Designs
Good document design saves time and money, reduces legal problems, and builds goodwill. A well-designed document looks inviting, friendly, and easy to.
Atri Ticketing System (ATS)
Tips on Giving Effective PAA Presentations, Job Talks, and the Like
Presentation transcript:

Importance of logs in custom development

Introduction We all know that Drupal logs most of the things. During CUSTOM DEVELOPMENT it is important to do a little brainstorming on logging and to analyze the questions like - Where, Why, Why not, When and What to log.

How it helps? Logging helps to maintain the bug free modules and themes longer. Easy to debug, trace and resolve the issues.

Is it necessary to log? It is not necessary, it depends on the module or theme that we are building but it should not be ignored.

Background This presentation will try to give all question`s answer. Why we should log? Where we should log? Where we should not log? When to log or not? What to log or not?

Let us get started ….

Why we should log? Logging makes code more effective. It helps to understand the processing of the output and program flow. It saves developers lots of time. Non technical people can also understand the program flow. Helps to monitor the system like CPU usage, execution time of a functionality, etc. Log helps to generate reports and analytics which can very useful to take business decisions.

Where we should log? Wherever we want ! Few examples of files are below. .php .module .inc .tpl .test .js

Where we should log ... With respect to path, try to put log file in easily accessible path like - Desktop, Documents, etc. It is irritating to keep log files in deeper paths. Logging format and settings are different for individual platform. Like - Acquia Dev Desktop

Where we should not log? In the large loops In the hooks or functions which are called multiple times like hook_init in D7. Avoid heavy logging during bootstrapping mode of Drupal, It can slow down Drupal.

Where we should not log? ... Logging is not possible in all the plain files like .info, .css, .txt, etc.

When to log or not? During big calculations During page loads During ajax calls During site visit During login and logout Avoid logs if data is too heavy.

What to log or not? There is no restriction in logging of any type data, every type of data collection can be logged in Drupal. Criticality of data decides that it should be logged or not. Use PHP`s error_log to log every possible data collection.

Logging functions Watchdog ( < D8 ) \Drupal::logger in ( D8 ) PHP`s error_log

Important contrib modules Export logs https://www.drupal.org/project/export_logs

Important Note Keep only critical loggings in production environment. It should be as small as possible. and rest of the loggings should be limited to development environment. Log statements may be removed or commented before deployment to production. It also depends on the application whether it wants to maintain a detailed log or not.

Important Note ... Try to keep log messages small. Large log messages are difficult to understand and to go through. It is better to maintain the logs file to know the behavior of the application for a period of time. Failure, info, warning, status logs are equally important like success. Over a period of time logs should be cleared. A log file should not be too big to open in editor.

Questions?