Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5942669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:17:10+00:00 2026-05-22T16:17:10+00:00

EDIT: So it appears that the problem is in the log level of my

  • 0

EDIT: So it appears that the problem is in the log level of my log handlers/appenders and root logger. Somehow HQ (simply the other app) has it’s logs configured to get all log messages. What I need is to prohibit my jsa handler to pass log messages up the level.

Hi. I have an issue with my logging.

Info: I’ve got several apps (including hyperic, further HQ) running on a server. And there’s also a groovy app/script running on the server. HQ triggers a script but actually has no integration with it, meaning that all HQ knows about groovy script is the output in command line produced by groovy script.

Problem: somehow HQ logs get all the messages from groovy script. I may assume that when groovy does it’s logging it also prints all the logs to standard java log which is in turn overridden by HQ.

I have a log4j configuration for groovy script which should have made logging to default java log impossible.

log4j.rootLogger=info, jsa
log4j.logger.net.schmizz.sshj=WARN

#Defining logger scope and it's params
log4j.logger.mypackage=INFO, jsa
log4j.appender.jsa=org.apache.log4j.RollingFileAppender
log4j.appender.jsa.File=logs/jsa.log
log4j.appender.jsa.MaxFileSize=1MB
log4j.appender.jsa.MaxBackupIndex=5
log4j.appender.jsa.layout=org.apache.log4j.PatternLayout
log4j.appender.jsa.layout.ConversionPattern=%d [%t] %-5p %c (%F:%L) - %m%n

Though I still get all the nasty logging.

P.S.: I also use slf4j for flexibility, though I doubt it cold have done this trick.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T16:17:11+00:00Added an answer on May 22, 2026 at 4:17 pm

    The problem is not in logging (though additivity options will be useful here) but in the directory where the groovy files reside. In HQ version 4.3 all the files in hq-plugins are saved to tmp directory and the changed files are also saved there (so if you have a file foo.txt and you put it there, it will be saved in tmp; if you somehow modify it, it will also be saved in tmp, again).

    Solution: simply remove logs, groovy scripts and other files from hq-plugins to other location. Tmp directory in this case is $HQ_HOME/server/hq-engine/hq-server/default/tmp/deploy/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having an incredibly frustrating problem that appears to be a bug, but I
EDIT: The problem is that I used .select() instead of .find(); I have this
OK, I am working on an App that has a page with a listview
Possible Duplicate: Plugging in to Java compilers Edit - this appears to be a
I am trying to remove/edit the text shown in the picture which appears from
My CMS project has a stylish web 2.0 login screen that fades over the
I'm having some trouble reading files with Indy from a site that has WordPress
I'm trying to use a custom textfield background. The problem is that the text
I'm currently working in an app that shows a contact list to the user.
I realize that this question has been asked and has been answered here but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.