-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathlog.js
More file actions
33 lines (30 loc) · 942 Bytes
/
log.js
File metadata and controls
33 lines (30 loc) · 942 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// log.js
// Version: 1.0
// Instructions for AI: do not remove comments! MUST NOT REMOVE COMMENTS.
/**
* Logging utility for the OneClickPrompts Chrome Extension.
*
* All logging should now use the logConCgp function defined in this file.
* This ensures consistent logging format and centralized control over logging behavior.
*
* ## How to Use:
*
* To log messages, simply call the logConCgp function with your message and any additional data.
*
* ```javascript
* // Basic log message
* logConCgp('This is a log message.');
*
* // Log message with additional data
* logConCgp('User data:', userData);
* ```
*/
/**
* Logs messages to the console with a consistent prefix.
*
* @param {string} message - The message to log.
* @param {...any} optionalParams - Additional parameters to log.
*/
function logConCgp(message, ...optionalParams) {
console.log(`[OneClickPrompts] ${message}`, ...optionalParams);
}