Skip to content

Commit

Permalink
Merge pull request #19 from jitsi/syslog
Browse files Browse the repository at this point in the history
Moves logging.properties to etc folder in Debian package install. Add…
  • Loading branch information
damencho committed Sep 9, 2015
2 parents b231ff3 + 3caddc9 commit 2908946
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
4 changes: 4 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,10 @@
<filelist dir="." files="build.xml"/>
<filelist dir="." files="jigasi.sh"/>
</copy>
<replace file="${debian.target.dir}/jigasi.sh"
token="$SCRIPT_DIR/lib/logging.properties">
<replacevalue>/etc/jitsi/jigasi/logging.properties</replacevalue>
</replace>
<chmod file="${debian.target.dir}/jigasi.sh" perm="+x"/>

<copy file="debian/changelog.tmpl"
Expand Down
2 changes: 1 addition & 1 deletion debian/install
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
lib/*.jar usr/share/jigasi/lib
lib/*.properties usr/share/jigasi/lib
lib/logging.properties etc/jitsi/jigasi
jigasi-home/sip-communicator.properties etc/jitsi/jigasi
jigasi.jar usr/share/jigasi
jigasi.sh usr/share/jigasi
Binary file added lib/agafua-syslog.jar
Binary file not shown.
9 changes: 8 additions & 1 deletion lib/logging.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@

handlers= java.util.logging.ConsoleHandler
#handlers= java.util.logging.ConsoleHandler, com.agafua.syslog.SyslogHandler

java.util.logging.ConsoleHandler.level = ALL
java.util.logging.ConsoleHandler.formatter = net.java.sip.communicator.util.ScLogFormatter
Expand All @@ -13,4 +14,10 @@ org.jitsi.impl.neomedia.level=SEVERE
# Do not worry about missing strings
net.java.sip.communicator.service.resources.AbstractResourcesService.level=SEVERE

#net.java.sip.communicator.service.protocol.level=ALL
#net.java.sip.communicator.service.protocol.level=ALL

# Syslog(uncomment handler to use)
com.agafua.syslog.SyslogHandler.transport = udp
com.agafua.syslog.SyslogHandler.facility = local0
com.agafua.syslog.SyslogHandler.port = 514
com.agafua.syslog.SyslogHandler.hostname = localhost

0 comments on commit 2908946

Please sign in to comment.