In Android studio, If we write a log tag of more than 23 characters, it shows an underlined warning saying tag can't be more than 23 characters (pic for ref).
If we want to do something similar to our own method (maybe while writing a new library), How can we achieve that?