Project

General

Profile

Logging to standard output/error

Added by Daniele Ricci 12 days ago

Hello Tigase team,
I was wondering if it's possible to redirect all logging (that is, the ones in tigase.log.#) to standard output or error. It would be really convenient because I'm building a Docker container for Tigase and I'd like to handle logging in the host system. If I'm not mistaken, Tigase uses java.util.logging right? Can I use a custom logging.properties somehow? Does Tigase take that into account?

Thanks


Replies (2)

RE: Logging to standard output/error - Added by Wojciech Kapcia 11 days ago

Hi Daniel,
yes, it's possible to adjust JUL settings, you can do it via init.properties file:
  • in version up to 7.1.0, for example:
    basic-conf/logging/java.util.logging.FileHandler.limit=100000000
    basic-conf/logging/java.util.logging.FileHandler.count=20
    basic-conf/logging/java.util.logging.ConsoleHandler
    basic-conf/logging/tigase.db.level=FINE
    basic-conf/logging/.level=ALL
    
  • in newer versions, for example:
    logging {
        java.util.logging.FileHandler {
            count = '20'
            limit = '500000000'
        }
    }
    

RE: Logging to standard output/error - Added by Daniele Ricci 9 days ago

Wow quite some changes you had in 7.2 :-)

Thanks for your help!!

    (1-2/2)