当前位置: 首页>>代码示例>>Java>>正文


Java Logger类代码示例

本文整理汇总了Java中com.sun.istack.internal.logging.Logger的典型用法代码示例。如果您正苦于以下问题:Java Logger类的具体用法?Java Logger怎么用?Java Logger使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Logger类属于com.sun.istack.internal.logging包,在下文中一共展示了Logger类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: exportLevelToT3d

import com.sun.istack.internal.logging.Logger; //导入依赖的package包/类
/**
 * Exports unreal map (.unr, .ut2, ...) to Unreal Text level file (.t3d)
 * 
 * @param mapConverter
 *            MapConverter options, used to determined which game
 * @param unrealMap
 *            Map to export to .t3d
 * @return t3d file map exported
 */
public static File exportLevelToT3d(MapConverter mapConverter, File unrealMap) throws Exception {

	if (unrealMap == null || !unrealMap.exists()) {
		Logger.getLogger(UCCExporter.class).warning("Impossible to export");
		return null;
	}

	UPackageRessource t3dRessource = new UPackageRessource(mapConverter, unrealMap.getAbsolutePath(), Type.LEVEL, true);
	UCCExporter ucE = new UCCExporter(mapConverter);

	Set<File> files = ucE.extract(t3dRessource, false, true);

	// UT3.com do not give info about t3d exported file in logs
	// but is always PersistentLevel.t3d in Binaries folder
	if (mapConverter.getInputGame() == UTGame.UT3) {

		File binariesFolder = UTGames.getBinariesFolder(mapConverter.getUserConfig().getGameConfigByGame(UTGame.UT3).getPath(), UTGame.UT3);

		return new File(binariesFolder + File.separator + UTGames.T3D_LEVEL_NAME_UE3);
	} else {
		return !files.isEmpty() ? files.iterator().next() : null;
	}
}
 
开发者ID:xtremexp,项目名称:UT4Converter,代码行数:33,代码来源:UCCExporter.java

示例2: createEndpointComponentUri

import com.sun.istack.internal.logging.Logger; //导入依赖的package包/类
private URI createEndpointComponentUri(@NotNull QName serviceName, @NotNull QName portName) {
    StringBuilder sb = new StringBuilder(serviceName.getNamespaceURI()).append("#wsdl11.port(").append(serviceName.getLocalPart()).append('/').append(portName.getLocalPart()).append(')');
    try {
        return new URI(sb.toString());
    } catch (URISyntaxException ex) {
        Logger.getLogger(TubelineAssemblyController.class).warning(
                TubelineassemblyMessages.MASM_0020_ERROR_CREATING_URI_FROM_GENERATED_STRING(sb.toString()),
                ex);
        return null;
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:12,代码来源:TubelineAssemblyController.java

示例3: PMClientHandler

import com.sun.istack.internal.logging.Logger; //导入依赖的package包/类
public PMClientHandler(Socket client) {
	this.client = client;
	log = Logger.getLogger(PMClientHandler.class);
	try {
		this.mouse = new Robot();
	} catch (AWTException e) {
		e.printStackTrace();
	}
}
 
开发者ID:Technohacker,项目名称:PhoneMouse,代码行数:10,代码来源:PMClientHandler.java


注:本文中的com.sun.istack.internal.logging.Logger类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。