export newRequestId from logger
This commit is contained in:
		@@ -1,5 +1,8 @@
 | 
				
			|||||||
import { createLogger, format, transports } from "winston"
 | 
					import { createLogger, format, transports } from "winston"
 | 
				
			||||||
import { config } from "./configuration"
 | 
					import { config } from "./configuration"
 | 
				
			||||||
 | 
					import { v4 } from "uuid"
 | 
				
			||||||
 | 
					export const newRequestId = v4()
 | 
				
			||||||
 | 
					export const noGuildId = 'NoGuildId'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const printFn = format.printf(({ guildId, level, message, errorCode, requestId, timestamp: logTimestamp }: { [k: string]: string }) => {
 | 
					const printFn = format.printf(({ guildId, level, message, errorCode, requestId, timestamp: logTimestamp }: { [k: string]: string }) => {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user