I have a class with multiple functions
class Foo() {
fun one() {
//do something
}
fun two() {
// do something
}
fun three() {
// do something
}
}
How can I trigger a call to a Logger object that I have, so that in the logs I can see all functions accessed or called, without explicitly placing the log call on every function to keep the code clean. I'm trying to keep a full log trace of all functions called within a service api call, but I don't want to have something like this
class Foo() {
fun one() {
log.call()
//do something
}
fun two() {
log.call()
// do something
}
fun three() {
log.call()
// do something
}
}