Gradle with complete custom logging

I am not sure whether this is the right place to ask this question, this is the first time I have used this forum so here goes.

I have read the gradle documentation with regards to logging but I can’t seem to find a solution to what I am trying to do. I understand the different logging levels and how to set them. I have also created a logger and attached it to build events but this doesn’t seem to do what I want.

When I build my task I want to be able to generate custom output so that specific text is rendered in the terminal and logging from my third party classes is not included in the output. I have done this in the past with other non gradle projects by defining properties for the logging system such as defining logging levels for certain packages.

Is it possible to do this in gradle?