Last active
September 30, 2022 12:08
-
-
Save cp-hardik-p/afa88fff1d6126ab7b057de39907eb76 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private fun generateLog(priority: Int, tag: String?, message: String): String { | |
| val logTimeStamp = dateFormat.format(Date()) | |
| return StringBuilder().append(logTimeStamp).append(" ") | |
| .append(getPriorityString(priority)).append(": ") | |
| .append(tag).append(" - ") | |
| .append(message).append('\n').toString() | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment