本文整理了Java中org.eclipse.jem.util.logger.proxy.Logger.log()
方法的一些代码示例,展示了Logger.log()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.log()
方法的具体详情如下:
包路径:org.eclipse.jem.util.logger.proxy.Logger
类名称:Logger
方法名:log
[英]Log the byte at the default level.
[中]以默认级别记录字节。
代码示例来源:origin: org.eclipse/org.eclipse.jem.util
/**
* deprecated use log(Throwable, Level)
* @param aLevel
* @param ex
* @return
*
* @since 1.0.0
*/
public String log(Level aLevel, Exception ex) {
return log(ex, aLevel);
}
/**
代码示例来源:origin: org.eclipse/org.eclipse.jem.util
/**
* Log an error string.
* @param msg
* @return how it was logged. See <code>CONSOLE_DESCRIPTION.</code>
*
* @since 1.0.0
*/
public String logError(String msg) {
return log(msg, Level.SEVERE);
}
代码示例来源:origin: org.eclipse/org.eclipse.jem.util
/**
* Log the character at the default level.
* @param c
* @return how it was logged. See <code>CONSOLE_DESCRIPTION.</code>
*
* @since 1.0.0
*/
public String log(char c) {
return log(c, ILogRenderer2.DEFAULT);
}
代码示例来源:origin: org.eclipse/org.eclipse.jem.util
/**
* Log the byte at the default level.
* @param b
* @return how it was logged. See <code>CONSOLE_DESCRIPTION.</code>
*
* @since 1.0.0
*/
public String log(byte b) {
return log(b, ILogRenderer2.DEFAULT);
}
代码示例来源:origin: org.eclipse/org.eclipse.jem.util
/**
* Log the short at the default level.
* @param s
* @return how it was logged. See <code>CONSOLE_DESCRIPTION.</code>
*
* @since 1.0.0
*/
public String log(short s) {
return log(s, ILogRenderer2.DEFAULT);
}
代码示例来源:origin: org.eclipse/org.eclipse.jem.util
/**
* Log an error throwable
* @param e
* @return how it was logged. See <code>CONSOLE_DESCRIPTION.</code>
*
* @since 1.0.0
*/
public String logError(Throwable e) {
return log(e, Level.SEVERE);
}
代码示例来源:origin: org.eclipse/org.eclipse.jem.util
/**
* Log the float at the default level.
* @param f
* @return how it was logged. See <code>CONSOLE_DESCRIPTION.</code>
*
* @since 1.0.0
*/
public String log(float f) {
return log(f, ILogRenderer2.DEFAULT);
}
代码示例来源:origin: org.eclipse/org.eclipse.jem.util
/**
* deprecated use log(Object, Level)
* @param aLevel
* @param logEntry
* @return
*
* @since 1.0.0
*/
public String write(Level aLevel, Object logEntry) {
return log(logEntry, aLevel);
}
代码示例来源:origin: org.eclipse/org.eclipse.jem.util
/**
* deprecated use log(Throwable, Level)
* @param aLevel
* @param ex
* @return
*
* @since 1.0.0
*/
public String write(Level aLevel, Throwable ex) {
return log(ex, aLevel);
}
/**
代码示例来源:origin: org.eclipse/org.eclipse.jem.util
/**
* Log a throwable as a warning.
* @param e
* @return how it was logged. See <code>CONSOLE_DESCRIPTION.</code>
*
* @since 1.0.0
*/
public String logInfo(Throwable e) {
return log(e, Level.INFO);
}
代码示例来源:origin: org.eclipse/org.eclipse.jem.util
/**
* Log the throwable as a warning.
* @param e
* @return how it was logged. See <code>CONSOLE_DESCRIPTION.</code>
*
* @since 1.0.0
*/
public String logWarning(Throwable e) {
return log(e, Level.WARNING);
}
代码示例来源:origin: org.eclipse/org.eclipse.jem.util
/**
* Log the throwable at the default level for a throwable.
* @param e
* @return how it was logged. See <code>CONSOLE_DESCRIPTION.</code>
*
* @since 1.0.0
*/
public String log(Throwable e) {
return log(e, ILogRenderer2.DEFAULT);
}
代码示例来源:origin: org.eclipse/org.eclipse.jem.util
/**
* Log a boolean at the default level.
* @param b
* @return how it was logged. See <code>CONSOLE_DESCRIPTION.</code>
*
* @since 1.0.0
*/
public String log(boolean b) {
return log(b, ILogRenderer2.DEFAULT);
}
代码示例来源:origin: org.eclipse/org.eclipse.jem.util
/**
* deprecated use log(Level, Exception)
* @param aLevel
* @param ex
* @return
*
* @since 1.0.0
*
*/
public String write(Level aLevel, Exception ex) {
return log(aLevel, ex);
}
代码示例来源:origin: org.eclipse/org.eclipse.jem.util
/**
* deprecated use log(String, Level)
* @param aLevel
* @param string
* @return
*
* @since 1.0.0
*/
public String write(Level aLevel, String string) {
return log(string, aLevel);
}
/**
代码示例来源:origin: org.eclipse/org.eclipse.jem.util
/**
* Log the message as warning.
* @param msg
* @return how it was logged. See <code>CONSOLE_DESCRIPTION.</code>
*
* @since 1.0.0
*/
public String logWarning(String msg) {
return log(msg, Level.WARNING);
}
/**
代码示例来源:origin: org.eclipse/org.eclipse.jem.util
/**
* Log the int at the default level.
* @param i
* @return how it was logged. See <code>CONSOLE_DESCRIPTION.</code>
*
* @since 1.0.0
*/
public String log(int i) {
return log(i, ILogRenderer2.DEFAULT);
}
代码示例来源:origin: org.eclipse/org.eclipse.wst.common.frameworks
protected String getDefinesExtension(String providerType) {
readRegistryIfNecessary();
String element = (String) definesExtensions.get(providerType);
if (null == element) {
Logger.getLogger().log(new RuntimeException("Extension:" + EXTENSION + " Element:" + DEFINES_TYPE_ELEMENT + " not found for " + ATTRIBUTE_PROVIDER_TYPE + ": " + providerType)); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
}
return element;
}
代码示例来源:origin: org.eclipse/org.eclipse.jst.j2ee
protected void createManifest(IProject project, IContainer aFolder, IProgressMonitor monitor) throws CoreException, InvocationTargetException, InterruptedException {
IFile file = aFolder.getFile(new Path(J2EEConstants.MANIFEST_URI));
if (file.exists()) return;
try {
ManifestFileCreationAction.createManifestFile(file, project);
} catch (CoreException e) {
Logger.getLogger().log(e);
} catch (IOException e) {
Logger.getLogger().log(e);
}
}
代码示例来源:origin: org.eclipse/org.eclipse.jst.j2ee.ejb
/**
* Load the EJB MOF model.
*/
public EObject loadEjbFile() {
IVirtualComponent comp = ComponentCore.createComponent(getProject());
edit = ComponentUtilities.getArtifactEditForRead(comp);
try {
return ((EnterpriseArtifactEdit) edit).asArchive(false);
} catch (OpenFailureException e1) {
Logger.getLogger().log(e1);
}
return null;
}
内容来源于网络,如有侵权,请联系作者删除!