protected String getTag ( ILoggingEvent event ) { // format tag based on encoder layout; truncate if max length // exceeded (only necessary for isLoggable(), which throws // IllegalArgumentException) String tag = ( this . tagEncoder != null ) ? this . tagEncoder . getLayout ( ) . doLayout ( event ) : event . getLoggerName ( ) ; if ( checkLoggable && ( tag . length ( ) > MAX_TAG_LENGTH ) ) { tag = tag . substring ( 0 , MAX_TAG_LENGTH - 1 ) + "*" ; } return tag ; }
Gets the logcat tag string of a logging event