logger how to use in function as there are no clas...
# announcements
c
logger how to use in function as there are no class and how to make it common so logger.info or similar can do and also want to loglevel set at global. not sure how to do it kotlin.
z
Which logging library are you using?
c
sl4j
know how do it via java idiom
z
I don't think you need to do anything special. What do you mean there is no class?
c
in kotlin we have function and in java we have methods bound to class
j
If you need to give a class to the logger factory you can use:
Copy code
MethodHandles.lookup().lookupClass()
This will work in the top level (outside of any classes) or within a class (correctly looking up the enclosing class)
c
can you point out to some article or any resource im doing for entire module