本文整理了Java中org.osgl.logging.Logger.info()
方法的一些代码示例,展示了Logger.info()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.info()
方法的具体详情如下:
包路径:org.osgl.logging.Logger
类名称:Logger
方法名:info
暂无
代码示例来源:origin: actframework/actframework
private void checkAndCommit() {
if (!enabled) {
logger.info("Global CSRF is disabled");
conf.enableCsrf(false);
}
logger.info("Global CSRF is enabled");
conf.csrfCookieName(this.cookieName);
conf.csrfHeaderName(this.headerName);
conf.csrfParamName(this.paramName);
conf.csrfProtector(this.protector);
}
}
代码示例来源:origin: org.actframework/act
private void checkAndCommit() {
if (!enabled) {
logger.info("Global CSRF is disabled");
conf.enableCsrf(false);
}
logger.info("Global CSRF is enabled");
conf.csrfCookieName(this.cookieName);
conf.csrfHeaderName(this.headerName);
conf.csrfParamName(this.paramName);
conf.csrfProtector(this.protector);
}
}
代码示例来源:origin: actframework/actframework
public void logStart() {
Act.LOGGER.info("CLI server started on port: %s", port);
}
代码示例来源:origin: org.actframework/act-morphia
@Override
public void info(String msg, Throwable t) {
logger.info(t, msg);
}
代码示例来源:origin: org.actframework/act-morphia
@Override
public void info(String msg) {
logger.info(msg);
}
代码示例来源:origin: actframework/actframework
protected void info(String format, Object ... args) {
logger.info(format, args);
}
代码示例来源:origin: org.actframework/act-morphia
@Override
public void info(String format, Object... arg) {
logger.info(format, arg);
}
代码示例来源:origin: actframework/actframework
protected void info(Throwable t, String format, Object ... args) {
logger.info(t, format, args);
}
代码示例来源:origin: org.actframework/act
public void logStart() {
Act.LOGGER.info("CLI server started on port: %s", port);
}
代码示例来源:origin: org.actframework/act
protected void info(String format, Object ... args) {
logger.info(format, args);
}
代码示例来源:origin: org.actframework/act
protected void info(Throwable t, String format, Object ... args) {
logger.info(t, format, args);
}
代码示例来源:origin: actframework/actframework
private void checkAndCommit() {
if (!enabled) {
logger.info("Global CORS is disabled");
conf.enableCors(false);
return;
}
logger.info("Global CORS is enabled");
conf.enableCors(true);
conf.corsAllowOrigin(allowOrigin);
conf.corsHeaders(consolidate(headersBoth));
conf.corsAllowHeaders(consolidate(headersAllowed));
conf.corsHeadersExpose(consolidate(headersExpose));
conf.corsMaxAge(maxAge);
}
代码示例来源:origin: org.actframework/act
private void checkAndCommit() {
if (!enabled) {
logger.info("Global CORS is disabled");
conf.enableCors(false);
return;
}
logger.info("Global CORS is enabled");
conf.enableCors(true);
conf.corsAllowOrigin(allowOrigin);
conf.corsHeaders(consolidate(headersBoth));
conf.corsAllowHeaders(consolidate(headersAllowed));
conf.corsHeadersExpose(consolidate(headersExpose));
conf.corsMaxAge(maxAge);
}
代码示例来源:origin: actframework/actframework
public synchronized void register(int port, boolean secure, NetworkHandler client) {
E.NPE(client);
E.illegalArgumentIf(registry.containsKey(port), "Port %s has been registered already", port);
registry.put(port, client);
if (secure) {
securePorts.add(port);
}
if (started) {
if (!trySetUpClient(client, port, secure)) {
failed.put(port, client);
} else {
logger.info("network client hooked on port: %s", port);
}
}
}
代码示例来源:origin: org.actframework/act
public synchronized void register(int port, boolean secure, NetworkHandler client) {
E.NPE(client);
E.illegalArgumentIf(registry.containsKey(port), "Port %s has been registered already", port);
registry.put(port, client);
if (secure) {
securePorts.add(port);
}
if (started) {
if (!trySetUpClient(client, port, secure)) {
failed.put(port, client);
} else {
logger.info("network client hooked on port: %s", port);
}
}
}
代码示例来源:origin: actframework/actframework
@Override
public void start() {
for (int port : registry.keySet()) {
NetworkHandler client = registry.get(port);
if (!trySetUpClient(client, port, securePorts.contains(port))) {
failed.put(port, client);
} else {
Act.LOGGER.info("network client hooked on port: %s", port);
}
}
started = true;
App app = Act.app();
if (null != app) {
app.registerHotReloadListener(new App.HotReloadListener() {
@Override
public void preHotReload() {
simpleWebSocketConnector = null;
}
});
}
}
代码示例来源:origin: org.actframework/act
@Override
public void start() {
for (int port : registry.keySet()) {
NetworkHandler client = registry.get(port);
if (!trySetUpClient(client, port, securePorts.contains(port))) {
failed.put(port, client);
} else {
Act.LOGGER.info("network client hooked on port: %s", port);
}
}
started = true;
App app = Act.app();
if (null != app) {
app.registerHotReloadListener(new App.HotReloadListener() {
@Override
public void preHotReload() {
simpleWebSocketConnector = null;
}
});
}
}
代码示例来源:origin: actframework/actframework
private void initService(String dbId, Map<String, String> conf) {
Map<String, String> svcConf = new HashMap<>();
String prefix = "db." + (S.blank(dbId) ? "" : dbId + ".");
for (String key : conf.keySet()) {
if (key.startsWith(prefix)) {
String o = conf.get(key);
svcConf.put(key.substring(prefix.length()), o);
}
}
String impl = svcConf.remove("impl");
String svcId = S.empty(dbId) ? DEFAULT : dbId;
if (null == impl) {
throw new ConfigurationException("Cannot init db service[%s]: implementation not specified", svcId);
}
DbPlugin plugin = Act.dbManager().plugin(impl);
if (null == plugin) {
throw new ConfigurationException("Cannot init db service[%s]: implementation not found: %s", svcId, impl);
}
DbService svc = plugin.initDbService(S.blank(dbId) ? DEFAULT : dbId, app(), svcConf);
serviceMap.put(svcId, svc);
logger.info("db service[%s] initialized", svcId);
}
代码示例来源:origin: org.actframework/act
public boolean send() {
try {
MimeMessage message = createMessage();
if (!mailerConfig().mock()) {
if (logger.isDebugEnabled()) {
logger.debug("Sending email\n%sEnd email\n", debug(message));
}
Transport.send(message);
} else {
logger.info("Sending email\n%sEnd email\n", debug(message));
}
return true;
} catch (Exception e) {
logger.error(e, "Error sending email: %s", this);
return false;
}
}
代码示例来源:origin: actframework/actframework
public boolean send() {
try {
MimeMessage message = createMessage();
if (!mailerConfig().mock()) {
if (logger.isDebugEnabled()) {
logger.debug("Sending email\n%sEnd email\n", debug(message));
}
Transport.send(message);
} else {
logger.info("Sending email\n%sEnd email\n", debug(message));
}
return true;
} catch (Exception e) {
logger.error(e, "Error sending email: %s", this);
return false;
}
}
内容来源于网络,如有侵权,请联系作者删除!