Drive has 700+ articles for digital transformation leaders written by StarCIO Digital Trailblazer, Isaac Sacolick. Learn more.

Application Logging is an important tool used by System Administrators and fellow developers to isolate production issues. While logging is a standard practice today, Developers don’t fully appreciate the importance of standardizing the types of log messages, documenting them, and possibly providing scanning tools so that system administrators can diagnose and recover application issues in a production environment,Here are some basic concepts:

1) Take advantage of log priorities often used by general log components. Many support different levels including Info, Debug, Warn, and Critical. Develop standards for your application.
2) Create ID numbers for all your log output. This makes it easier to develop an out-of-application knowledge base further defining the log message and how it should be treated.
3) As a general rule, its good to log things before and after each transaction. This makes it easy to track a particular workflow.
4) If you’re working with a component or object oriented code base standardize your log messages to include classes and methods.
5) If this is a multi-user application, include an ID (session ID for example) for the running user.
6) Do not include private/security critical info in logs.
7) Keep in mind that logging does slow the app down and does use up disk space. Watch out for loops or other operations that occur very frequently and log only what is necessary.
8) Docuement the log information and provide your system administators with enough information on how to scan the log for issues.
9) Better yet, develop the appropriate scripts that parse the log proactively and alert on key issues. Another approach is to scan the logs nightly and develop aggregate statistics.
10) Review logs periodically and adjust alert levels for areas of the code that are stable.

Published on:

Leave a Reply


StarCIO

My company, StarCIO, provides leadership, learning, and advisory programs for companies looking to accelerate delivering business value from digital transformation. Contact me if you’d like to learn more about partnering opportunities.


Isaac Sacolick

Join us for a future session of Coffee with Digital Trailblazers, where we discuss topics for aspiring transformation leaders. If you enjoy my thought leadership, please sign up for the Driving Digital Newsletter and read all about my transformation stories in Digital Trailblazer.


Coffee with Digital Trailblazers hosted by Isaac Sacolick

Digital Trailblazers! Join us Fridays at 11am ET for a live audio discussion on digital transformation topics:  innovation, product management, agile, DevOps, data governance, and more!


Join the Community of StarCIO Digital Trailblazers

About Drive

Drive Agility, Innovation, Transformation

Drive is the blog for digital transformation leaders brought to you by StarCIO and Isaac Sacolick.

Agility, Innovation, and Transformation are the three primary digital transformation core competencies that every StarCIO Digital Trailblazer must champion in their organizations. Learn more About Drive.


About the StarCIO Digital Trailblazer Community

StarCIO Digital Trailblazer Community

Revolutionizing traditional learning, networking, and advising experiences.

Visit the community


About StarCIO

StarCIO

About Isaac Sacolick

Isaac Sacolick

Author, 1,000+ articles, keynote speaker, Chief StarCIO Digital Trailblazer. Full bio


Driving Digital Newsletter

Driving Digital Newsletter

StarCIO Guides

StarCIO Agile Planning Guides

Digital Trailblazer

Digital Trailblazer by Isaac Sacolick

Driving Digital

Driving Digital by Isaac Sacolick

Driving Digital Standup

Driving Digital Standup

Coffee with Digital Trailblazers

StarCIO Coffee With Digital Trailblazers

Recognition

InfoWorld 2025 Judge
InfoWorld Technology of the Year 2024 Judge
Thinkers360 Top 10 in IT Leadership
Thinkers360 Top Agile Thought Leader
Thinkers360 Top DevOps Leader
Thinkers360 Top in Digital Transfomation
Thinkers360 Top in Analytics
Thinkers360 Top in Product Management

Discover more from StarCIO Digital Trailblazer Community

Subscribe now to keep reading and get access to the full archive.

Continue reading