Smack

Provide ability to log the xmpp communication in a log file and rework debug window

Details

  • Type: New Feature New Feature
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 3.2.0, 3.2.1
  • Fix Version/s: 3.3.0
  • Component/s: Core
  • Labels:
    None
  • Acceptance Test - Add?:
    No

Description

The packages recorded in the debug mode should be written into a text file. Also the timestamps should be with milliseconds.

Provide a check box to enable disable log writing and an input field for the location of the log file.

Activity

Hide
Christopher Oezbek added a comment -

Hi Walter,
I looked at your patch for inclusion in the community patch queue, but wanted to ask whether it would not make more sense to use a SmackLogger and configure it to print to a file using Log4J or similar.

Cheers,
Christopher

Show
Christopher Oezbek added a comment - Hi Walter, I looked at your patch for inclusion in the community patch queue, but wanted to ask whether it would not make more sense to use a SmackLogger and configure it to print to a file using Log4J or similar. Cheers, Christopher
Hide
Guenther Niess added a comment -

With the already available ConsoleDebugger you can write the XMPP traffic to a file by redirecting the STDOUT to your logfile. Please setup the Java properties smack.debugEnabled and smack.debuggerClass e.g. with the following startup arguments

java -Dsmack.debuggerClass=org.jivesoftware.smack.debugger.ConsoleDebugger -Dsmack.debugEnabled=true [options] application >>debug.log

In my opinion the EnhancedDebugger shouldn't be used for such a usecase. It's more intended to provide a user interface for a live analysis.

Show
Guenther Niess added a comment - With the already available ConsoleDebugger you can write the XMPP traffic to a file by redirecting the STDOUT to your logfile. Please setup the Java properties smack.debugEnabled and smack.debuggerClass e.g. with the following startup arguments
java -Dsmack.debuggerClass=org.jivesoftware.smack.debugger.ConsoleDebugger -Dsmack.debugEnabled=true [options] application >>debug.log
In my opinion the EnhancedDebugger shouldn't be used for such a usecase. It's more intended to provide a user interface for a live analysis.
Hide
Walter Ebeling added a comment -

We should have the ability to write the smack inbound and outbound data to a file (actually in one or two files ?) The target folder should be the spark home/log.

Show
Walter Ebeling added a comment - We should have the ability to write the smack inbound and outbound data to a file (actually in one or two files ?) The target folder should be the spark home/log.
Hide
Robin Collier added a comment -

As this is a new feature, it should not be slated for the 3.2.2 release, it should be put in the 3.3 release. Unless it is urgently required, I am going to move its fix version.

Show
Robin Collier added a comment - As this is a new feature, it should not be slated for the 3.2.2 release, it should be put in the 3.3 release. Unless it is urgently required, I am going to move its fix version.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated: