0.0.17 • Published 4 years ago

napi-addon-spdlog v0.0.17

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

napi-addon-spdlog

This NPM package is suitable for Linux and windows, and C + + environment is required under windows. And it is suitable for node8.0 and above. Be careful, the message passed in must be of type string. otherwise, an error is thrown.

Example

const addon_logger = require("napi-addon-spdlog");

addon_logger.setLevel(addon_logger.LOGLEVEL.TRACE);
addon_logger.setFormatter("[%H:%M:%S] [%l] -%v");

// for rotating logger
const rotatingLogger = new addon_logger.RotatingLogger("test", "./logs/rotating.log", 30 * 1024 * 1024, 5);
rotatingLogger.info("This is test file!");

// for daily logger, and The log file was created at 2:30 pm
const dailyLogger = new addon_logger.DailyLogger("test", "./logs/all.log", 2, 30);
dailyLogger.info("This is test file!");
0.0.17

4 years ago

0.0.16

4 years ago

0.0.15

4 years ago

0.0.14

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago