private static BitSet calculateFullStackTraceRequirements ( final Collection < LogEntryValue > [ ] [ ] logEntryValues ) { BitSet result = new BitSet ( logEntryValues . length ) ; for ( int i = 0 ; i < logEntryValues . length ; ++ i ) { Collection < LogEntryValue > values = logEntryValues [ i ] [ Level . ERROR . ordinal ( ) ] ; if ( values . contains ( LogEntryValue . METHOD ) || values . contains ( LogEntryValue . FILE ) || values . contains ( LogEntryValue . LINE ) ) { result . set ( i ) ; } } return result ; }
Calculates for which tag a full stack trace element with method name file name and line number is required .