Skip to content

Commit 26ad4fb

Browse files
Create README.md
1 parent 2144c64 commit 26ad4fb

File tree

1 file changed

+16
-0
lines changed
  • Server-Side Components/Script Includes/Developer Debug Utility

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Developer Debug Utility (Controlled Logging)
2+
Create a systemProperty - enable_debug_for_scripts (Boolean value)
3+
4+
# Overview
5+
This utility provides a centralized, configurable debug logging mechanism** for developers.
6+
Instead of using gs.info(), gs.log(), or gs.warn() - which create permanent logs in the system, developers can now log messages conditionally through a system property.
7+
8+
When the property 'enable_debug_for_scripts' is set to 'true', debug messages are logged; otherwise, all debug calls are ignored.
9+
This makes it ideal for debugging issues in Production without modifying code or flooding system logs.
10+
11+
12+
# Objective
13+
To provide a reusable, lightweight debugging utility that allows developers to:
14+
- Enable/disable debug logs globally via a system property.
15+
- Avoid unnecessary system log entries when debugging is not needed.
16+
- Maintain clean, controlled, and consistent debug output across server-side scripts.

0 commit comments

Comments
 (0)