Skip to content

Commit 8c04d1a

Browse files
authored
Create README.md
1 parent 13e5705 commit 8c04d1a

File tree

1 file changed

+20
-0
lines changed
  • Client-Side Components/Client Scripts/Logger Utility

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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

0 commit comments

Comments
 (0)