简体   繁体   English

如何在 Intellij Idea 上查看 Glassfish 日志

[英]How Can I View Glassfish Logs on Intellij Idea

I am working on making the switch from Netbeans to Intellij Idea .我正在努力从Netbeans切换到Intellij Idea One thing I miss from Netbeans is the ability to view the Glassfish server logs in real-time in the IDE.我错过了Netbeans的一件事是能够在 IDE 中实时查看Glassfish服务器日志。 It seems like with Idea I need to go out to the file system and tail them.似乎有了 Idea,我需要进入文件系统并跟踪它们。

Is there another way that I am missing?还有另一种我想念的方式吗?

Additional server logs can be added in the "Logs tab of the Glassfish Run/Debug configuration"可以在"Logs tab of the Glassfish Run/Debug configuration"中添加其他服务器日志

在此处输入图像描述

This worked for me:-这对我有用:-

  1. Go to the "Run/Debug Configuration" section转到“运行/调试配置”部分
  2. Go to "Logs" tab转到“日志”选项卡
  3. Click on the "+" icon点击“+”图标
  4. Enter "Alias" name and enter the server log file location associated on the "Log File Location" section输入“别名”名称并输入与“日志文件位置”部分关联的服务器日志文件位置

添加 GlassFish 服务器日志

GlassFish log is available in the Services window, when you click on a running deployment, and then click the GlassFish Log tab in the right part of the window: GlassFish 日志在“服务”窗口中可用,当您单击正在运行的部署时,然后单击窗口右侧的 GlassFish 日志选项卡:

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM