logatim | isomorphic logger which implements log levels
kandi X-RAY | logatim Summary
kandi X-RAY | logatim Summary
Finally you can use the same logger for the server and client side of your applications. Log for developers using colors, underlines, etc. in order to transform the terminal in an authentic debugger machine. And log for production managing exactly what have and what have not to be outputted.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- find an object
logatim Key Features
logatim Examples and Code Snippets
Community Discussions
Trending Discussions on logatim
QUESTION
I will explain what I want to achieve and then what I have done (without results)
I have two node services connected between them with RabbitMQ ussing exchanges (topic):
What I want is shutdown C1
while still sending messages to something.orange.something
. Then I want to restart my C1
again and receive all the messages that I have lost.
What happens to me now is that each time I restart my consumer creates a new queue and creates a new binding in my exchange with the same routing key. So I have now two queues receiving the same information.
If I configure my queue with the param {exclusive: true}
, I solve part of the problem, I no longer have queues without receivers, but still having the same problem... all messages sent without an active receiver are lost.
it's possible?
Here my code:
sender:
...ANSWER
Answered 2017-Jan-19 at 23:30You need named queues. When you declare the queue in your receiver class, give it a well-known name (constant), something like
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install logatim
Install it via npm: npm install logatim --save
Download from the dist folder the stand-alone specification which fits better for you: var, commonjs, umd or amd. Note that the installation via npm uses the umd pattern so should work in all the environments.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page