skip to main content
OSTI.GOV title logo U.S. Department of Energy
Office of Scientific and Technical Information

Title: Grid Logging: Best Practices Guide

Technical Report ·
DOI:https://doi.org/10.2172/935326· OSTI ID:935326

The purpose of this document is to help developers of Grid middleware and application software generate log files that will be useful to Grid administrators, users, developers and Grid middleware itself. Currently, most of the currently generated log files are only useful to the author of the program. Good logging practices are instrumental to performance analysis, problem diagnosis, and security auditing tasks such as incident tracing and damage assessment. This document does not discuss the issue of a logging API. It is assumed that a standard log API such as syslog (C), log4j (Java), or logger (Python) is being used. Other custom logging API or even printf could be used. The key point is that the logs must contain the required information in the required format. At a high level of abstraction, the best practices for Grid logging are: (1) Consistently structured, typed, log events; (2) A standard high-resolution timestamp; (3) Use of logging levels and categories to separate logs by detail and purpose; (4) Consistent use of global and local identifiers; and (5) Use of some regular, newline-delimited ASCII text format. The rest of this document describes each of these recommendations in detail.

Research Organization:
Lawrence Berkeley National Lab. (LBNL), Berkeley, CA (United States)
Sponsoring Organization:
Computational Research Division
DOE Contract Number:
DE-AC02-05CH11231
OSTI ID:
935326
Report Number(s):
LBNL-663E; TRN: US200816%%871
Country of Publication:
United States
Language:
English

Similar Records

A floppy disk standard for log data
Journal Article · Sun Dec 01 00:00:00 EST 1991 · Geobyte; (United States) · OSTI ID:935326

LAS: A floppy disk standard for log data
Journal Article · · Geobyte; (United States) · OSTI ID:935326

Best practices for documenting a scientific Python project
Conference · Fri Dec 01 00:00:00 EST 2023 · OSTI ID:935326