INNER CODE UNIT · TypeScript
getLogFiles
aws-samples/bedrock-engineer · src/common/logger/index.ts:167
export const getLogFiles = (): string[] => {
return getLogFilePaths(loggerConfig)
}
/**
* Register global error handlers
*/
export const registerGlobalErrorHandlers = (): void => {
process.on('uncaughtException', (error) => {
log.error('Uncaught Exception', { error: error.stack || String(error) })
})
process.on('unhandledRejection', (reason) => {
log.error('Unhandled Promise Rejection', {
reason: reason instanceof Error ? reason.stack : String(reason)
})
})
}