本文整理汇总了Java中org.jfree.util.PrintStreamLogTarget类的典型用法代码示例。如果您正苦于以下问题:Java PrintStreamLogTarget类的具体用法?Java PrintStreamLogTarget怎么用?Java PrintStreamLogTarget使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PrintStreamLogTarget类属于org.jfree.util包,在下文中一共展示了PrintStreamLogTarget类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: initialize
import org.jfree.util.PrintStreamLogTarget; //导入依赖的package包/类
/**
* Initalizes the module. This method initializes the logging system, if the
* System.out logtarget is selected.
*
* @param subSystem the sub-system.
* @throws ModuleInitializeException if an error occured.
*/
public void initialize(final SubSystem subSystem)
throws ModuleInitializeException
{
if (LogConfiguration.isDisableLogging())
{
return;
}
if (LogConfiguration.getLogTarget().equals
(PrintStreamLogTarget.class.getName()))
{
DefaultLog.installDefaultLog();
Log.getInstance().addTarget(new PrintStreamLogTarget());
if ("true".equals(subSystem.getGlobalConfig().getConfigProperty
("org.jfree.base.LogAutoInit")))
{
Log.getInstance().init();
}
Log.info("Default log target started ... previous log messages " +
"could have been ignored.");
}
}
开发者ID:mdzio,项目名称:ccu-historian,代码行数:31,代码来源:DefaultLogModule.java
示例2: main
import org.jfree.util.PrintStreamLogTarget; //导入依赖的package包/类
/**
* Runs the generator, using the 'generator.properties' file for configuration info.
*
* @param args command line arguments.
*
* @throws Exception if something goes wrong!
*/
public static void main(final String[] args) throws Exception {
Log.getInstance().addTarget(new PrintStreamLogTarget());
URL propertyURL = ObjectUtilities.getResourceRelative
("generator.properties", DescriptionGenerator.class);
if (args.length > 0) {
final File f = new File(args[0]);
propertyURL = f.toURL();
}
final Properties p = loadProperties(propertyURL);
final String handlerSource = p.getProperty("attributedefinition");
if (handlerSource != null) {
final Properties handlers = loadProperties(new URL(propertyURL, handlerSource));
ModelBuilder.getInstance().addAttributeHandlers(handlers);
}
final String source = p.getProperty("sourcedirectory", ".");
final String target = p.getProperty("targetfile", "model.xml");
DescriptionModel model = null;
try {
model = new DefaultModelReader().load(target);
}
catch (Exception e) {
Log.debug("Unable to load default model. Ignoring...");
}
// Log.debug (model.getModelComments());
model = generate(source, p, model);
model.prune();
writeMultiFile(target, model);
System.exit(0);
}
开发者ID:mdzio,项目名称:ccu-historian,代码行数:41,代码来源:DescriptionGenerator.java
示例3: main
import org.jfree.util.PrintStreamLogTarget; //导入依赖的package包/类
/**
* Starting point for the demonstration application.
*
* @param args ignored.
*/
public static void main(final String[] args) {
Log.getInstance().addTarget(new PrintStreamLogTarget());
final BarChart3DDemo2 demo = new BarChart3DDemo2("3D Bar Chart Demo 2");
demo.pack();
RefineryUtilities.centerFrameOnScreen(demo);
demo.setVisible(true);
}
开发者ID:josejamilena,项目名称:pfc-jose,代码行数:15,代码来源:BarChart3DDemo2.java
示例4: SegmentedTimelineTests2
import org.jfree.util.PrintStreamLogTarget; //导入依赖的package包/类
/**
* Constructor
*/
public SegmentedTimelineTests2() {
super();
Log.getInstance().replaceTargets(new PrintStreamLogTarget());
}
开发者ID:parabuild-ci,项目名称:parabuild-ci,代码行数:8,代码来源:SegmentedTimelineTests2.java
注:本文中的org.jfree.util.PrintStreamLogTarget类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论