@novemberizing/log v0.0.20
NOVEMBERIZING LOG
"Novemberizing log" is a log library implemented in JavaScript.
"Novemberizing log" aims to be a simple to use library.
Install
The log library can be installed using "npm".
npm install --save @novemberizing/log
Usage
You can use the log library to print errors, warnings, info, debug, and other logs to the console or to a file.
Log.e("tag", "message"); // Error log
Log.w("tag", "message"); // Warning log
Log.i("tag", "message"); // Information log
Log.d("tag", "message"); // Debug log
Log.v("tag", "message"); // Other log
How to write log to file
The log library does not write logs to files by default. To write the log to a file, you must set the log name and the folder where the log file will be saved.
Log.config = {
name: "novemberizing"
path: "."
};
How to print only specific logs
"Novemberizing log" outputs all logs by default. To enable or disable specific logs, you must enable or disable logs for each category.
Log.config = {
error: true,
warning: true,
information: true,
debug: false,
verbose: false
}
Document
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
10 months ago
11 months ago
11 months ago