10 lines
303 B
JavaScript
10 lines
303 B
JavaScript
/**
|
|
* A simple logging utility that prefixes log messages with a timestamp and a tag.
|
|
*
|
|
* @param {...any} args - The arguments to log, which can be of any type.
|
|
*/
|
|
export const log = (...args) => {
|
|
const timestamp = new Date().toISOString();
|
|
console.log(`[holybar] [${timestamp}]`, ...args);
|
|
};
|