GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — UTBotJava/EnableLogging.md at main · UnitTestBot/UTBotJava

Expand file tree

/

EnableLogging.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
38 lines (15 loc) · 1.54 KB
/

EnableLogging.md

Copy path

File metadata and controls

38 lines (15 loc) · 1.54 KB
Raw
Copy raw file
Download raw file
Edit and raw actions

How to enable UTBot logging in IntelliJ IDEA

In UTBot we use loggers like the following one:

val logger = Logger.getInstance(CodeGenerator::class.java)

Instead of sending loggers output in the standard stream or a file, we can put them right into IntelliJ IDEA. So, let`s do it then! 😃

  1. In UTBot repository find Gradle > Tasks > intellij > runIde and choose it with the right button click

image

  1. Select Modify Run Configuration... item, and then Modify options > Specify logs to be shown in console

image

  1. Click ➕ and add new Idea log file (or choose any name you want for it 😉) in the Log files to be shown in console section

image

  1. Restart the 'runIde' task, check that the new tab is present in your IDE

image

  1. And we`re done! 😃 Narrow logging messages to the loggers you are interested in

image

If you want to use the existing loggers in UTBot or you`re a contributor and you have your own loggers to add, please watch this article to know how to do it in a better way.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.