Package Exports
- teclogger
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (teclogger) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
teclogger
ATTENTION!!! Logger now works differently. That was necessary to make him more perfomed for the future.
Installation
npm i --save teclogger
USAGE
const Teclog = require('teclogger');
var tec = new Teclog( 5000, 3, 'mm/dd/yyyy - HH:MM:ss.l' );
tec.info('Example Text');
____________________________________________
Output in console and logfile:
ℹ | 06/17/2019 | 11:09:49.182 | Example Text
Methods
info(message);
success(message);
error(message);
warning(message);
data(message);
Options
1. logFileSize = Bytes Standard: 3000000
2. logMode = 1 -> only console.log | 2 -> only logfile | 3 -> console.log and logfile
3. dateFormat = Standard: 'dd.mm.yyyy - HH:MM:ss.l'
d Day without leading 0
dd Day with leading 0
m Month without leading 0
mm Month with leading 0
yy Year 2 digits
yyyy Year 4 digits
H Hour without leading 0
HH Hour with leading 0
M Minutes without leading 0
MM Minutes with leading 0
s Seconds without leading 0
ss Seconds with leading 0
l Miliseconds with 3 digits
Example: mm/dd/yyyy - HH:MM:ss.l -> 06/16/2019 - 21:55:11.730
Changes
- Jun 17 2019 - Conversion to class. Add more Methods
- Jun 16 2019 - First Implementation for date format
- Jun 14 2019 - Error in querying the file fixed & Logrotation Unix-Timestamp
- Jun 06 2019 - Add Log-Rotate
- May 28 2019 - Add selection data
- May 24 2019 - Change the License to MIT; Remove Dependency dateformat
- May 23 2019 - Remove Dependency log-symbols and folder log is automated created
Upcoming
- code optimization