File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Client-Side Components/Client Scripts/Logger Utility Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 1+ # ServiceNow Client-Side Logger Utility
2+
3+ A lightweight, reusable JavaScript utility for client-side logging within the ServiceNow platform.
4+
5+ # Purpose
6+
7+ This utility provides developers a standardised, timestamped, and easily toggleable logging mechanism for client-side scripts in ServiceNow.
8+ It improves debugging efficiency and code consistency while minimising console noise in production.
9+
10+
11+ # Features
12+ 1 . Timestamped log messages [ YYYY-MM-DDTHH:MM: SS ]
13+ 2 . Log levels: INFO, DEBUG, WARN, and ERROR
14+ 3 . Easily enable/disable debug mode globally
15+ 4 . Lightweight and ECMAScript 6–compliant
16+ 5 . Works in Client Scripts, UI Scripts, and Service Portal widgets
17+
18+ # Usage in ServiceNow instance
19+ Create the UI Script with the code provided in LoggerUtility.js
20+ And follow the usage described in the same file for any client side logging
You can’t perform that action at this time.
0 commit comments