Is there a way to attach a lambda function and filter pattern to newly lambda function's cloudwatch log?

Hello,
What is the correct pattern to aggregate lambda logs?

I am using https://github.com/sirupsen/logrus for logging any errors to my functions and i have a general error function that I would attach to the log stream, but I can’t find a way to automatically add this when the function is being created.

Is there a way to attach a lambda function and filter pattern to newly lambda function’s cloudwatch log?