本文整理汇总了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;
}
}
示例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;
}
}
示例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();
}
}