code: void log(SessionLogEntry entry, String formattedMessage) {
          int level = entry.getLevel();
          Throwable loggedException = entry.getException();
  
          String msgParm;
          if ((formattedMessage == null || formattedMessage.equals("")) && loggedException != null) {
              msgParm = loggedException.toString();
          } else {
              msgParm = formattedMessage;
          }
  
          switch (level) {
              case 8:
                  return;
              case 7: // SEVERE
                  // With the persistence service, only errors will be logged.  The rest will be debug.
                  String errMsg = Tr.formatMessage(_stc, "PROVIDER_ERROR_CWWKD0292E", msgParm);
                  Tr.error(_tc, errMsg);
                  break;
              case 6:// WARN
                  String wrnMsg = Tr.formatMessage(_stc, "PROVIDER_WARNING_CWWKD0291W", msgParm);
                  Tr.debug(_tc, wrnMsg); // 170432 - move warnings to debug
                  break;
              case 3: // FINE
              case 2: // FINER
              case 1: // FINEST
              case 0: // TRACE
                  Tr.debug(_tc, formattedMessage);
                  break;
          }// end switch
  
          // if there is an exception - only log it to trace
          if (_tc.isDebugEnabled() && loggedException != null) {
              Tr.debug(_tc, "throwable", loggedException);
          }
      }
docs: This method will only be called AFTER affirming that we should be logging