Comments (5)
Cant reproduce this error:
matt@amnesia /src/winston-daily-rotate-file
± |master ✗| → nodenv local 6.9.1
matt@amnesia /src/winston-daily-rotate-file
± |master ✗| → npm test
> [email protected] test /src/winston-daily-rotate-file
> mocha && eslint .
winston/transports/daily-rotate-file
an instance of the transport
with default datePatterns
✓ should have a proper filename when prepend option is false
✓ should have a proper filename when prepend option is false (localtime)
✓ should have a proper filename when prepend options is true
✓ should remove leading dot if one is provided with datePattern
✓ should not add leading dot if one is not provided with datePattern
✓ should remove leading dot if one is provided with datePattern when prepend option is true
when passed a valid file
✓ should have the proper methods defined
with the error level
✓ should respond with true when passed no metadata
✓ should respond with true when passed no metadata
✓ should respond with true when passed object metadata
✓ should respond with true when passed primitive metadata
✓ should respond with true when passed circular metadata
with the warn level
✓ should respond with true when passed no metadata
✓ should respond with true when passed no metadata
✓ should respond with true when passed object metadata
✓ should respond with true when passed primitive metadata
✓ should respond with true when passed circular metadata
with the info level
✓ should respond with true when passed no metadata
✓ should respond with true when passed no metadata
✓ should respond with true when passed object metadata
✓ should respond with true when passed primitive metadata
✓ should respond with true when passed circular metadata
with the verbose level
✓ should respond with true when passed no metadata
✓ should respond with true when passed no metadata
✓ should respond with true when passed object metadata
✓ should respond with true when passed primitive metadata
✓ should respond with true when passed circular metadata
with the debug level
✓ should respond with true when passed no metadata
✓ should respond with true when passed no metadata
✓ should respond with true when passed object metadata
✓ should respond with true when passed primitive metadata
✓ should respond with true when passed circular metadata
with the silly level
✓ should respond with true when passed no metadata
✓ should respond with true when passed no metadata
✓ should respond with true when passed object metadata
✓ should respond with true when passed primitive metadata
✓ should respond with true when passed circular metadata
when passed a valid stream
✓ should have the proper methods defined
with the error level
✓ should respond with true when passed no metadata
✓ should respond with true when passed no metadata
✓ should respond with true when passed object metadata
✓ should respond with true when passed primitive metadata
✓ should respond with true when passed circular metadata
with the warn level
✓ should respond with true when passed no metadata
✓ should respond with true when passed no metadata
✓ should respond with true when passed object metadata
✓ should respond with true when passed primitive metadata
✓ should respond with true when passed circular metadata
with the info level
✓ should respond with true when passed no metadata
✓ should respond with true when passed no metadata
✓ should respond with true when passed object metadata
✓ should respond with true when passed primitive metadata
✓ should respond with true when passed circular metadata
with the verbose level
✓ should respond with true when passed no metadata
✓ should respond with true when passed no metadata
✓ should respond with true when passed object metadata
✓ should respond with true when passed primitive metadata
✓ should respond with true when passed circular metadata
with the debug level
✓ should respond with true when passed no metadata
✓ should respond with true when passed no metadata
✓ should respond with true when passed object metadata
✓ should respond with true when passed primitive metadata
✓ should respond with true when passed circular metadata
with the silly level
✓ should respond with true when passed no metadata
✓ should respond with true when passed no metadata
✓ should respond with true when passed object metadata
✓ should respond with true when passed primitive metadata
✓ should respond with true when passed circular metadata
when passed a valid prepended file
✓ should have the proper methods defined
with the error level
✓ should respond with true when passed no metadata
✓ should respond with true when passed no metadata
✓ should respond with true when passed object metadata
✓ should respond with true when passed primitive metadata
✓ should respond with true when passed circular metadata
with the warn level
✓ should respond with true when passed no metadata
✓ should respond with true when passed no metadata
✓ should respond with true when passed object metadata
✓ should respond with true when passed primitive metadata
✓ should respond with true when passed circular metadata
with the info level
✓ should respond with true when passed no metadata
✓ should respond with true when passed no metadata
✓ should respond with true when passed object metadata
✓ should respond with true when passed primitive metadata
✓ should respond with true when passed circular metadata
with the verbose level
✓ should respond with true when passed no metadata
✓ should respond with true when passed no metadata
✓ should respond with true when passed object metadata
✓ should respond with true when passed primitive metadata
✓ should respond with true when passed circular metadata
with the debug level
✓ should respond with true when passed no metadata
✓ should respond with true when passed no metadata
✓ should respond with true when passed object metadata
✓ should respond with true when passed primitive metadata
✓ should respond with true when passed circular metadata
with the silly level
✓ should respond with true when passed no metadata
✓ should respond with true when passed no metadata
✓ should respond with true when passed object metadata
✓ should respond with true when passed primitive metadata
✓ should respond with true when passed circular metadata
when passed a valid weekday file
✓ should have the proper methods defined
with the error level
✓ should respond with true when passed no metadata
✓ should respond with true when passed no metadata
✓ should respond with true when passed object metadata
✓ should respond with true when passed primitive metadata
✓ should respond with true when passed circular metadata
with the warn level
✓ should respond with true when passed no metadata
✓ should respond with true when passed no metadata
✓ should respond with true when passed object metadata
✓ should respond with true when passed primitive metadata
✓ should respond with true when passed circular metadata
with the info level
✓ should respond with true when passed no metadata
✓ should respond with true when passed no metadata
✓ should respond with true when passed object metadata
✓ should respond with true when passed primitive metadata
✓ should respond with true when passed circular metadata
with the verbose level
✓ should respond with true when passed no metadata
✓ should respond with true when passed no metadata
✓ should respond with true when passed object metadata
✓ should respond with true when passed primitive metadata
✓ should respond with true when passed circular metadata
with the debug level
✓ should respond with true when passed no metadata
✓ should respond with true when passed no metadata
✓ should respond with true when passed object metadata
✓ should respond with true when passed primitive metadata
✓ should respond with true when passed circular metadata
with the silly level
✓ should respond with true when passed no metadata
✓ should respond with true when passed no metadata
✓ should respond with true when passed object metadata
✓ should respond with true when passed primitive metadata
✓ should respond with true when passed circular metadata
when passed a valid prepend weekday file
✓ should have the proper methods defined
with the error level
✓ should respond with true when passed no metadata
✓ should respond with true when passed no metadata
✓ should respond with true when passed object metadata
✓ should respond with true when passed primitive metadata
✓ should respond with true when passed circular metadata
with the warn level
✓ should respond with true when passed no metadata
✓ should respond with true when passed no metadata
✓ should respond with true when passed object metadata
✓ should respond with true when passed primitive metadata
✓ should respond with true when passed circular metadata
with the info level
✓ should respond with true when passed no metadata
✓ should respond with true when passed no metadata
✓ should respond with true when passed object metadata
✓ should respond with true when passed primitive metadata
✓ should respond with true when passed circular metadata
with the verbose level
✓ should respond with true when passed no metadata
✓ should respond with true when passed no metadata
✓ should respond with true when passed object metadata
✓ should respond with true when passed primitive metadata
✓ should respond with true when passed circular metadata
with the debug level
✓ should respond with true when passed no metadata
✓ should respond with true when passed no metadata
✓ should respond with true when passed object metadata
✓ should respond with true when passed primitive metadata
✓ should respond with true when passed circular metadata
with the silly level
✓ should respond with true when passed no metadata
✓ should respond with true when passed no metadata
✓ should respond with true when passed object metadata
✓ should respond with true when passed primitive metadata
✓ should respond with true when passed circular metadata
when passed an invalid filename
✓ should have proper methods defined
✓ should enter noop failed state
when passed an valid filename with different date patterns for log rotation
when passed the pattern full year pattern .yyyy
✓ should create log with proper timestamp
when passed the pattern small year pattern .yy
✓ should create log with proper timestamp
when passed the pattern month pattern .M
✓ should create log with proper timestamp
when passed the pattern zero padded month pattern .MM
✓ should create log with proper timestamp
when passed the pattern daypattern .d
✓ should create log with proper timestamp
when passed the pattern zero padded day pattern .dd
✓ should create log with proper timestamp
when passed the pattern hour pattern .H
✓ should create log with proper timestamp
when passed the pattern zero padded hour pattern .HH
✓ should create log with proper timestamp
when passed the pattern minute pattern .m
✓ should create log with proper timestamp
when passed the pattern zero padded minute pattern .mm
✓ should create log with proper timestamp
when passed the pattern daily rotation pattern .yyyy-MM-dd
✓ should create log with proper timestamp
when passed with maxsize and maxfiles
when passed the pattern .yyyy-MM-dd
✓ should properly rotate log with old files getting deleted
when passed with maxfiles set and maxsize not set
when passed the pattern .yyyy-MM-dd and no maxsize
files : test-rotation-no-maxsize.log.2029-01-02,test-rotation-no-maxsize.log.2029-01-03
✓ should properly rotate log without maxzsize set and with old files getting deleted
176 passing (233ms)
/src/winston-daily-rotate-file/index.js
278:3 warning Unexpected 'todo' comment no-warning-comments
✖ 1 problem (0 errors, 1 warning)
from winston-daily-rotate-file.
I also tested further: in live i also can not reproduce it, but when travis-ci is used to test things it breaks with this error ... any idea why?!
see https://travis-ci.org/Apollon77/ioBroker.nut (don't know if reachable from outside)
from winston-daily-rotate-file.
Im not really sure -- the travis build for this project runs just fine.
from winston-daily-rotate-file.
SOLVED: The reason whs an "unmet peer dependency" with npm 3.x and that's why it seems that something was not correctly installed. very strange. After manually installing winston before the real project in travis.yml it worked.
Maybe helps someone else too :-)
from winston-daily-rotate-file.
Great! Thanks for following up. :)
from winston-daily-rotate-file.
Related Issues (20)
- How do I make my files append instead of overwriting when logging? HOT 2
- maxFiles is not working HOT 10
- Facing EPERM Issue while oprning file.
- After server restart new log file is created but old file is not zipped
- Not deleting old log files
- How can I determine when the file stream has finished writing? HOT 1
- On rotation the new file's owner is not always the same. Sometimes it is the user, sometimes it is root HOT 3
- Please create a few more example codes.
- winstonDailyRotateFile does not create a new file if existing file is deleted HOT 2
- Winston's audit Files are created even when no logs are printed HOT 2
- monitoring logs
- Not deleting zipped log files HOT 1
- Current log file unreadable
- Awaiting logs to be written in winston
- How to change Log Rotate Appends number to daily files,
- Ability to write headers to newly created file HOT 1
- Remove log type field from the log
- Rotating file stream not working if maxsize = 1kb or frequency is 1 minute. Does this library really works HOT 2
- Adding new Maintainers HOT 15
- Add Storage Configuration HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from winston-daily-rotate-file.