Logs an error

@param e
the {Error} object or string
331166
function logError(e) {
		e = e instanceof Error ? e : e ? new Error(e) : null;
		if (e) {
			if (options && util.isRegExp(options.hideTokenRegExp)) {
				e.message = e.message.replace(options.hideTokenRegExp, function(match, prefix, token, suffix) {
					return prefix + '[SECURE]' + suffix;
				});
			}
			errors.unshift(e);
			rbot.log.error(e.stack || e.message);
		}
	}
1294549
public void onError(Exception e) {
    LOG.log(Level.SEVERE, e.getMessage(), e);
  }
78759
private void handleException(final Throwable e)
    {
        if ( errorListeners.size() == 0 )
        {
            LOG.error("", e);
        }
        else
        {
            errorListeners.forEach(new Function<UnhandledErrorListener, Void>()
            {
                @Override
                public Void apply(UnhandledErrorListener listener)
                {
                    try
                    {
                        listener.unhandledError("", e);
                    }
                    catch ( Exception e )
                    {
                        ThreadUtils.checkInterrupted(e);
                        LOG.error("Exception handling exception", e);
                    }
                    return null;
                }
            });
        }
    }
904025
public static void e(String tag, String msg, Object... args) {
        if (sLevel > LEVEL_ERROR) {
            return;
        }
        if (args.length > 0) {
            msg = String.format(msg, args);
        }
        Log.e(tag, msg);
    }
262246
static void logE(Task action, String msg, Throwable error) {
        Log.e(TAG, toLogStr(action, msg), error);
    }
1090789
public static void error(String msg, Object... args) {
		String tag = generateTag();
		if (!"".equals(tag)) {
			if (args.length > 0) {
				Log.e(tag, String.format(msg, args));
			} else {
				Log.e(tag, msg);

			}
		}
	}
1146664
public void log(Throwable error, String description) {
    log(error, null, description, null);
  }
1323803
public static void e(String msg, Element element) {
		messager.printMessage(Diagnostic.Kind.ERROR, msg, element);
	}
1339715
public void logClosedException(Exception e) {
        // Note: this may be a normal occurance so don't log error, just debug.
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
            Tr.debug(tc, "Connection closed with exception: " + e.getMessage());
        }
    }
950973
@Override
	public void error(String msg, Throwable e) {
		LoggerFactory.getLogger(from).error(msg);
	}
342495
function logError(error) {
    console.log(error.message);
    console.log(error.stack);
    console.trace(error);
    this.emit('end');
  }
887627
@Override
    public void error(String msg, Throwable e) {
        log.logIfEnabled(FQCN, Level.ERROR, null, msg, e);
    }
373358
private void logError(LifecycleListener listener, Exception e) {
        LOGGER.error("Error for listener " + listener.getClass(), e);
    }
808181
public static void logException(String message, Exception e) {
    logger.log(Level.SEVERE, message, e);
  }
25642
public static void log( String context , JMSException e , Log log )
	{
		StringBuilder message = new StringBuilder();
		if (context != null)
		{
			message.append("[");
			message.append(context);
			message.append("] ");
		} 
		if (e.getErrorCode() != null)
		{
			message.append("error={");
			message.append(e.getErrorCode());
			message.append("} ");
		}
		message.append(e.getMessage());
		log.error(message.toString());
		if (e.getLinkedException() != null)
			log.error("Linked exception was :",e.getLinkedException());
	}
888681
protected void logException(CharSequence msg, Exception e) {
    System.err.println(msg + ":" + e.getMessage());
    e.printStackTrace();
  }
909114
function (e,err)
		{
			if (typeof err == 'string' || typeof err != 'object' || err.stack == undefined)
				return false;

			e.owner.e.log('ERROR: '+err.message,'exception');

			var _stack = err.stack.split("\n");
			_stack.shift();
			for (s in _stack)
				e.owner.e.log(_stack[s],'stack');
		}