Enable Tomcat localhost/Catalina Log in IntelliJ IDEA

Ricardo Méndez

I'm attempting to run a Java/Spring/Hibernate/ application using IntelliJ 13 and its built in Tomcat deployment plugin. When debugging a buddy of mine has the following logs.

enter image description here

I was wondering how to enable the logs that are in red, currently in my IDEA. I have tried the following solution.

Heading over to the Run/Debug Configurations Tomcat server and clicking on the log tab and enabling the logs

enter image description here

I appreciate any help or tips in advance. Thanks guys

Javaru

If I am understanding your question correctly, you are not sure what to set in the "Log File Location" field of the "Edit Log File Aliases" dialog.

When you create a Tomcat Run/Debug configuration, IntelliJ IDEA creates a TOMCAT_BASE directory as {intellij_system_directory}\tomcat\{run_configuration_name}_{project_name}. (TOMCAT_HOME identifies where the binary files are and TOMCAT_BASE defines where an instance of tomcat is. Sometimes they are the same. In this case, they are not.) The {intellij_system_directory} directory is usually in ~/.IntelliJIdea13/system where ~ is your home directory (C:\Users\{username} on windows). See the document Directories used by the IDE to store settings, caches, plugins and logs. You can also go to Help > Show Log File which will pen the directory {intellij_system_directory}\logs. Just go up one directory and then into tomcat.

Just set the path to the appropriate logs directory. You can use ant file patterns to deal with dates. For example, for my Tomcat Run\Debug configuration named "My Web App" in "My Project", to view the catalina.log file, I would set the path to C:\Users\Mark\.IntelliJIdea13\system\tomcat\My_Web_App_My_Project\logs\catalina.*.log. The * wild characters the date stamp in the log name and IDEA will always open the latest/newest one.

Also take a look at this post -- https://devnet.jetbrains.com/message/5529312#5529315 -- of mine for information on a minor bug with naming of the tomcat base directories.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

Tomcat in Intellij Idea Community Edition

From Dev

IntelliJ IDEA add library to Tomcat

From Dev

tomcat run configurations in intellij IDEA

From Dev

How to enable editing of HTML files in IntelliJ Idea

From Dev

How to enable editing of HTML files in IntelliJ Idea

From Dev

Enable sbt plugin in IntelliJ IDEA 14

From Dev

Failure to launch Tomcat from IntelliJ IDEA

From Dev

tomcat startup issue on windows with intellij-idea

From Dev

Reloading of primefaces files in tomcat with Intellij IDEA

From Dev

IntelliJ IDEA 13 + Tomcat 7 deploy

From Dev

Intellij Idea Tomcat and Spring MVC template

From Dev

Deploying external wars in Tomcat via IntelliJ Idea

From Dev

Deploy servlet with IntelliJ IDEA to local Tomcat server

From Dev

IntelliJ Idea 12.1.4: Enabling Tomcat access logs

From Dev

Failure to launch Tomcat from IntelliJ IDEA

From Dev

intellij idea - cannot run "Tomcat" project on linux

From Dev

IntelliJ IDEA 2016.2 tomcat properties not updated

From Dev

Not able to run a service on tomcat via IntelliJ Idea

From Dev

How to configure Apache tomcat with Intellij IDEA?

From Dev

IntelliJ IDEA: Tomcat 8.5.13 and 9.0.0.M19 — Error during artifact deployment. See server log for details

From Dev

Intellij IDEA: How to enable TypeScript development for node apps?

From Dev

How to enable "View External Documentation" option in IntelliJ IDEA 14

From Dev

How does one enable Infinitest on a gradle project in IntelliJ IDEA 15?

From Dev

How to enable RESTful web services in Intellij Idea 12?

From Dev

Accidentally dismissed the decompiler prompt in Intellij Idea, how can I enable it?

From Dev

How to specify custom JRE path for Apache Tomcat in Intellij IDEA?

From Dev

How to persist tomcat sessions across restarts while using IntelliJ idea

From Dev

Tomcat war deployed via IntelliJ IDEA 13 is returning error

From Dev

Run maven web project with JSP debugging on tomcat with IntelliJ Idea

Related Related

  1. 1

    Tomcat in Intellij Idea Community Edition

  2. 2

    IntelliJ IDEA add library to Tomcat

  3. 3

    tomcat run configurations in intellij IDEA

  4. 4

    How to enable editing of HTML files in IntelliJ Idea

  5. 5

    How to enable editing of HTML files in IntelliJ Idea

  6. 6

    Enable sbt plugin in IntelliJ IDEA 14

  7. 7

    Failure to launch Tomcat from IntelliJ IDEA

  8. 8

    tomcat startup issue on windows with intellij-idea

  9. 9

    Reloading of primefaces files in tomcat with Intellij IDEA

  10. 10

    IntelliJ IDEA 13 + Tomcat 7 deploy

  11. 11

    Intellij Idea Tomcat and Spring MVC template

  12. 12

    Deploying external wars in Tomcat via IntelliJ Idea

  13. 13

    Deploy servlet with IntelliJ IDEA to local Tomcat server

  14. 14

    IntelliJ Idea 12.1.4: Enabling Tomcat access logs

  15. 15

    Failure to launch Tomcat from IntelliJ IDEA

  16. 16

    intellij idea - cannot run "Tomcat" project on linux

  17. 17

    IntelliJ IDEA 2016.2 tomcat properties not updated

  18. 18

    Not able to run a service on tomcat via IntelliJ Idea

  19. 19

    How to configure Apache tomcat with Intellij IDEA?

  20. 20

    IntelliJ IDEA: Tomcat 8.5.13 and 9.0.0.M19 — Error during artifact deployment. See server log for details

  21. 21

    Intellij IDEA: How to enable TypeScript development for node apps?

  22. 22

    How to enable "View External Documentation" option in IntelliJ IDEA 14

  23. 23

    How does one enable Infinitest on a gradle project in IntelliJ IDEA 15?

  24. 24

    How to enable RESTful web services in Intellij Idea 12?

  25. 25

    Accidentally dismissed the decompiler prompt in Intellij Idea, how can I enable it?

  26. 26

    How to specify custom JRE path for Apache Tomcat in Intellij IDEA?

  27. 27

    How to persist tomcat sessions across restarts while using IntelliJ idea

  28. 28

    Tomcat war deployed via IntelliJ IDEA 13 is returning error

  29. 29

    Run maven web project with JSP debugging on tomcat with IntelliJ Idea

HotTag

Archive