In Swift, I can use the following code to log a message, and I have access to all the relevant data I need:
class func log(type: LogType, message: String, fileName: String = #file, line: Int = #line, column: Int = #column, function: String = #function)
How can I do something similar in Android Java or Kotlin (preferable)?