This message was deleted.
# plugin-development
s
This message was deleted.
c
Interesting. Haven’t tried this w/ process workers, it definitely works for other worker types; it should work, using standard Gradle logger instances, as Gradle handles all the housekeeping around that and provides uniform output for many other processes.
m
Ah! How do I get a logger from a
WorkAction
?
Maybe inject it? I was looking for
WorkAction.getLogger()
like there is
Task.getLogger()
c
Not injectable. Grab it this way: `
Copy code
private val logger = Logging.getLogger(kClass.java)
…the class name (or string value) can be whatever you need.
👀 1
thank you 1
m
Ah, interesting, thanks!
👍 1