Merge branch 'territoryLogs' into 'main'
update readme See merge request v3/services/logger!6
This commit is contained in:
		
						commit
						bf17ac9c9c
					
				
							
								
								
									
										12
									
								
								README.md
								
								
								
								
							
							
						
						
									
										12
									
								
								README.md
								
								
								
								
							| 
						 | 
				
			
			@ -53,18 +53,6 @@ It is the responsibility of each service to set the routing key to the appropria
 | 
			
		|||
 | 
			
		||||
To handle logs for a given service, a controller corresponding to the service must be set. In this controller, you must define a handler for each action and level. You must also define a unique RabbitMQ queue for this handler (this permits to use durable queues, allowing to keep logs in RabbitMQ even if the logger service is down).
 | 
			
		||||
 | 
			
		||||
## Test
 | 
			
		||||
 | 
			
		||||
```bash
 | 
			
		||||
# unit tests
 | 
			
		||||
docker exec v3-user sh -c "npm run test"
 | 
			
		||||
 | 
			
		||||
# test coverage
 | 
			
		||||
docker exec v3-user sh -c "npm run test:cov"
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
Note : you can run all npm commands directly _outside_ the container (see _scripts_ section of `package.json` for available commands), but you need NodeJS installed locally. We **strongly** advise to install [Node Version Manager](https://github.com/nvm-sh/nvm) and use the latest LTS version of Node.
 | 
			
		||||
 | 
			
		||||
## License
 | 
			
		||||
 | 
			
		||||
Mobicoop V3 - Logger Service is [AGPL licensed](LICENSE).
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue