1.0.1 • Published 3 months ago
itsasht-logger v1.0.1
Logger
This logger is based off Log from _Charm, I liked the way it displays information to the admins.
Install
package manager | install code |
---|---|
npm | npm install itsasht-logger |
bun | bun add itsasht-logger |
Once you have installed the package you can use it by adding the following code:
const { log } = require('itsasht-logger'); //CommonJS
import { log } from 'itsasht-logger'; //ESM
log.info
log.info('This is a basic log message');
log.info('This is a more advanced log message', ["advanced", true], ["INFO", "This something different"])
log.new("DEBUG", "aqua", "This is a debug message", ["debug", "test debug messages"])
log.newRGB("Test", 107, 11, 224, "this is the color purple", ["test", "purple testing"])
The other functions are log.warning
and log.error
used in the same way as info shown above.
log.doc
log.doc("npm", "https://www.npmjs.com/package/itsasht-logger?activeTab=readme")