I would like to specify a log group name for this ...
# general
s
I would like to specify a log group name for this callback function on an API Gateway route, but there doesn't seem to be a property available to do so.
Copy code
const apiGateway = ( queueIDObject ) => {
    return new awsx.apigateway.API( GATEWAY_NAME, {
        routes: [ {
            path: ROUTE,
            method: 'POST',
            // Note wrapping this as a callback function it can have additional attributes set on the lambda
            eventHandler: new aws.lambda.CallbackFunction("write-event-to-sqs", {
                memorySize: 128,
                callback: async ( event, context ) => {
                    return webhookProcess.fire( event, context, queueIDObject );
                },
            description: "write events to queue and return 200"
            })
        } ]
    } );
};
Any ideas on how I could get
eventHandler
logs written to a named log group?