Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /opt/push-server/node_modules/triple-beam/ |
Upload File : |
# triple-beam Definitions of levels for logging purposes & shareable Symbol constants. ## Usage ``` js const { LEVEL } = require('triple-beam'); const colors = require('colors/safe'); const info = { [LEVEL]: 'error', level: 'error', message: 'hey a logging message!' }; // Colorize your log level! info.level = colors.green(info.level); // And still have an unmutated copy of your level! console.log(info.level === 'error'); // false console.log(info[LEVEL] === 'error'); // true ``` ## Tests Tests are written with `mocha`, `assume`, and `nyc`. They can be run with `npm`: ``` npm test ``` ##### LICENSE: MIT ##### AUTHOR: [Charlie Robbins](https://github.com/indexzero)