/** {@inheritDoc} */ @Override public GridLogger getLogger(Object ctgr) { assert ctgr != null; return new GridLoggerProxy(impl.getLogger(ctgr), ctgr, gridName, id8); }
/** * Prints all environment variables in debug mode. */ private void ackEnvironmentVariables() { assert log != null; if (log.isDebugEnabled()) for (Map.Entry<?, ?> envVar : System.getenv().entrySet()) log.debug("Environment variable [" + envVar.getKey() + '=' + envVar.getValue() + ']'); }
/** {@inheritDoc} */ @Override public void debug(String msg) { impl.debug(enrich(msg)); }
/** * Acks configuration URL. */ private void ackConfigUrl() { assert log != null; if (log.isInfoEnabled()) log.info("Config URL: " + System.getProperty(GG_CONFIG_URL, "n/a")); }
if (log.isDebugEnabled()) log.debug("Notifying lifecycle beans."); if (log.isDebugEnabled()) log.debug("Grid " + (gridName == null ? "" : '\'' + gridName + "' ") + "is stopping."); if (log.isDebugEnabled()) log.debug("Component stopped: " + comp); if (log.isQuiet()) { if (!errOnStop) U.quiet(false, "GridGain node stopped OK [uptime=" + if (log.isInfoEnabled()) if (!errOnStop) { String ack = "GridGain ver. " + COMPOUND_VER + '#' + BUILD_TSTAMP_STR + "-sha1:" + REV_HASH + log.info(NL + NL + ">>> " + dash + NL + ">>> " + ack + NL + log.info(NL + NL + ">>> " + ack + NL + ">>> " + dash + NL + if (log.isDebugEnabled()) { if (gw.getState() == STOPPED) log.debug("Grid is already stopped. Nothing to do."); else
assert log != null; String fileName = log.fileName(); if (log.isQuiet()) { U.quiet(false, " _____ _ _______ _ ", if (log.isInfoEnabled()) { log.info(NL + NL + ">>> _____ _ _______ _ " + NL + ">>> / ___/____(_)___/ / ___/___ _(_)___ " + NL +
/** * Prints out SMTP configuration. */ private void ackSmtpConfiguration() { assert log != null; String host = cfg.getSmtpHost(); boolean ssl = cfg.isSmtpSsl(); int port = cfg.getSmtpPort(); if (host == null) { U.warn(log, "SMTP is not configured - email notifications are off."); return; } String from = cfg.getSmtpFromEmail(); if (log.isQuiet()) U.quiet(false, "SMTP enabled [host=" + host + ":" + port + ", ssl=" + (ssl ? "on" : "off") + ", from=" + from + ']'); if (log.isInfoEnabled()) { String[] adminEmails = cfg.getAdminEmails(); log.info("SMTP enabled [host=" + host + ", port=" + port + ", ssl=" + ssl + ", from=" + from + ']'); log.info("Admin emails: " + (!isAdminEmailsSet() ? "N/A" : Arrays.toString(adminEmails))); } if (!isAdminEmailsSet()) U.warn(log, "Admin emails are not set - automatic email notifications are off."); }
if (log.isDebugEnabled()) log.debug("Added environment properties to node attributes."); if (log.isDebugEnabled()) log.debug("Added system properties to node attributes."); if (log.isInfoEnabled()) { log.info("Non-loopback local IPs: " + (F.isEmpty(ips) ? "N/A" : ips)); log.info("Enabled local MACs: " + (F.isEmpty(macs) ? "N/A" : macs));
/** * Logs out OS information. */ private void ackOsInfo() { assert log != null; if (log.isInfoEnabled()) { log.info("OS: " + U.osString()); log.info("OS user: " + System.getProperty("user.name")); } }
if (log.isQuiet()) { U.quiet(false, ""); U.quiet(false, "GridGain node started OK (id=" + U.id8(localNode().id()) + if (log.isInfoEnabled()) { log.info(""); log.info(str);
if (log.isDebugEnabled()) log.debug("Failed to create GridUpdateNotifier: " + e); if (log.isInfoEnabled() && cfg.getGridGainHome() != null) log.info("3-rd party licenses can be found at: " + cfg.getGridGainHome() + File.separatorChar + "libs" + File.separatorChar + "licenses");
/** * Prints all system properties in debug mode. */ private void ackSystemProperties() { assert log != null; if (log.isDebugEnabled()) for (Object key : U.asIterable(System.getProperties().keys())) log.debug("System property [" + key + '=' + System.getProperty((String) key) + ']'); }
/** * Acks daemon mode status. */ private void ackDaemon() { assert log != null; if (log.isInfoEnabled()) log.info("Daemon mode: " + (isDaemon() ? "on" : "off")); }
/** {@inheritDoc} */ @Override public void trace(String msg) { impl.trace(enrich(msg)); }
cfgLog = new GridLoggerProxy(cfgLog, null, name, U.id8(nodeId));
/** * Prints out class paths in debug mode. * * @param rtBean Java runtime bean. */ private void ackClassPaths(RuntimeMXBean rtBean) { assert log != null; // Ack all class paths. if (log.isDebugEnabled()) { log.debug("Boot class path: " + rtBean.getBootClassPath()); log.debug("Class path: " + rtBean.getClassPath()); log.debug("Library path: " + rtBean.getLibraryPath()); } }
/** * Prints out VM arguments and GRIDGAIN_HOME in info mode. * * @param rtBean Java runtime bean. */ private void ackVmArguments(RuntimeMXBean rtBean) { assert log != null; // Ack GRIDGAIN_HOME and VM arguments. if (log.isInfoEnabled()) { log.info("GRIDGAIN_HOME=" + cfg.getGridGainHome()); log.info("VM arguments: " + rtBean.getInputArguments()); } }
/** {@inheritDoc} */ @Override public void info(String msg) { impl.info(enrich(msg)); }
if (log != null && log.isDebugEnabled()) log.debug("Failed to load spring component, will not be able to extract userVersion from " + "META-INF/gridgain.xml.");
/** * Prints all user attributes in info mode. */ private void logNodeUserAttributes() { assert log != null; if (log.isInfoEnabled()) for (Map.Entry<?, ?> attr : cfg.getUserAttributes().entrySet()) log.info("Local node user attribute [" + attr.getKey() + '=' + attr.getValue() + ']'); }