1.1.15 • Published 3 years ago

disjs-logger v1.1.15

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

📜 Usage

const dislogger = require('disjs-logger');
const logger = new logger('C:\\Users\\Username\\ProjectDirectory\\logfile.txt');
// Double back slashes are used as a single backslash is an escape character.
logger.log("content", "type", __filename, "Message shown in console (MTD)");

✍ Arguements & Paramaters

  • Content (STRING) - The content or error shown in the log file.
  • Type (STRING) - The type of log, you can view the types below or input a custom type to use your own.
  • Filename (STRING) - The file where the log was invoke, usually __filename.
  • MTD (STRING) - The message to display in console when the log is invoked.

Types

  • Error - This is when you have an error of course, like my code (RED)
  • Log - The standard log (BLUE)
  • Warn - Input when you have a warning (YELLOW)
  • Debug - Standard debug for your projects (GREY)
  • Ready - Made for djs bots just to use in your ready event (GREEN)
  • Success - Like the ready type but for when something goes right (GREEN)
  • Perms - For when you need to say you have no permission in console (MAGENTA)
  • Nodeexc - This is just a standard Uncaught Exception but formatted (RED)
  • Noderejc - Again a standard Unhandled Rejection but formatted (RED)
  • Input a type other than these and it will still show, this is where the custom type comes in (Custom logs will always be blue)

📦 Dependencies

📂 Examples

You can find all the examples in the file called examples.js

🧑 Contact

_Made with ♥ by IceyyM8

1.1.15

3 years ago

1.1.14

3 years ago

1.1.13

3 years ago

1.1.12

3 years ago

1.1.11

3 years ago

1.1.10

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago