You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@joshua.apache.org by mj...@apache.org on 2016/06/01 02:51:58 UTC

[63/94] [abbrv] incubator-joshua git commit: fixed logger invocation

fixed logger invocation


Project: http://git-wip-us.apache.org/repos/asf/incubator-joshua/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-joshua/commit/b32bc8ae
Tree: http://git-wip-us.apache.org/repos/asf/incubator-joshua/tree/b32bc8ae
Diff: http://git-wip-us.apache.org/repos/asf/incubator-joshua/diff/b32bc8ae

Branch: refs/heads/master
Commit: b32bc8ae7f3f1773c204824e0f020bfbc7a20da9
Parents: 348c7cb
Author: Matt Post <po...@cs.jhu.edu>
Authored: Thu May 26 18:27:13 2016 -0400
Committer: Matt Post <po...@cs.jhu.edu>
Committed: Thu May 26 18:27:13 2016 -0400

----------------------------------------------------------------------
 bin/joshua-decoder |  2 +-
 logging.properties | 70 +++++++++----------------------------------------
 2 files changed, 14 insertions(+), 58 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/b32bc8ae/bin/joshua-decoder
----------------------------------------------------------------------
diff --git a/bin/joshua-decoder b/bin/joshua-decoder
index 1907638..a3ebd3f 100755
--- a/bin/joshua-decoder
+++ b/bin/joshua-decoder
@@ -44,7 +44,7 @@ JOSHUA=$(dirname $0)/..
 
 exec java -Xmx${mem} \
 	-Dfile.encoding=utf8 \
-	-Djava.util.logging.config.file=${JOSHUA}/logging.properties \
+	-Dlog4j.configuration=$JOSHUA/logging.properties \
 	-Djava.library.path=$JOSHUA/lib \
 	-cp $JOSHUA/target/joshua-*-jar-with-dependencies.jar \
 	org.apache.joshua.decoder.JoshuaDecoder "$@"

http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/b32bc8ae/logging.properties
----------------------------------------------------------------------
diff --git a/logging.properties b/logging.properties
index 507ce46..713851b 100644
--- a/logging.properties
+++ b/logging.properties
@@ -13,66 +13,22 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-# Set the log level for all classes to INFO (the least verbose log level)
-.level = INFO
+# Turn off logging
+log4j.rootLogger=OFF
 
-# Specify that logging is to go only to the console (and not also to a file)
-handlers=java.util.logging.ConsoleHandler
-#handlers=java.util.logging.ConsoleHandler java.util.logging.FileHandler
+## Other options (http://logging.apache.org/log4j/1.2/faq.html#sysprops)
 
-# Logging requires that the class's logger and the handler be turned on.
-# These lines set up the handler
-#
-# Logging can be changed program-wide by changing the handler's level
-# INFO is least verbose, FINEST is most verbose
-java.util.logging.ConsoleHandler.level=FINEST
-java.util.logging.ConsoleHandler.encoding=UTF8
-java.util.logging.FileHandler.level=FINEST
-java.util.logging.FileHandler.encoding=UTF8
-
-
-# This line turns off time stamps. If you want time stamps, comment this line out.
-java.util.logging.ConsoleHandler.formatter=joshua.util.QuietFormatter
-java.util.logging.FileHandler.formatter=joshua.util.QuietFormatter
-
-# If file logging is turned on, what name should the log file have?
-#java.util.logging.FileHandler.pattern=./joshua.%g.log
-
-# Maximum number of log files to maintain before overwriting
-java.util.logging.FileHandler.count=1
+## If true, log4j will output internal debugging messages to the console.
+# log4j.debug
 
-# Limiting size of output file in bytes (1 GB == 1073741824 bytes):
-java.util.logging.FileHandler.limit=1073741824
+## If true, log4j will not perform default initialization, that is check for log4j.properties or log4j.xml, at the first logging request.
+# log4j.defaultInitOverride
 
+## URL for default initialization configuration file.
+# log4j.configuration
 
-# To turn off all logging for a class, set to INFO; to turn all on, set to FINEST
-joshua.corpus.lexprob.SampledLexProbs.level=INFO
-joshua.corpus.lexprob.LexProbs.level=INFO
-joshua.decoder.InputHandler.level=INFO
-joshua.decoder.DecoderThread.level=INFO
-joshua.decoder.JoshuaDecoder.level=INFO
-joshua.decoder.chart_parser.DotChart.level=INFO
-joshua.decoder.chart_parser.Chart.level=INFO
-joshua.decoder.chart_parser.Cell.level=INFO
-joshua.decoder.hypergraph.HGNode.level=INFO
-joshua.decoder.hypergraph.KBestExtractor.level=INFO
-joshua.decoder.Decoder.level=INFO
-joshua.decoder.ff.FeatureFunction.level=INFO
-joshua.decoder.ff.PhraseModelFF.level=INFO
-joshua.decoder.ff.lm.ArpaFile.level=INFO
-joshua.decoder.ff.lm.DefaultNGramLanguageModel.level=INFO
-joshua.decoder.ff.lm.LMGrammar_JAVA.level=INFO
-joshua.decoder.ff.lm.buildin_lm.TrieLM.level=INFO
-joshua.decoder.ff.tm.AbstractGrammar.level=INFO
-joshua.decoder.ff.tm.BilingualRule.level=INFO
-joshua.decoder.ff.tm.MonolingualRule.level=INFO
-joshua.decoder.ff.tm.hash_based.MemoryBasedBatchGrammar.level=INFO
-joshua.decoder.ff.tm.TMGrammar_Memory.level=INFO
-joshua.lattice.Lattice.level=INFO
-joshua.ui.alignment.GridPanel.level=INFO
-joshua.ui.alignment.GridScrollPanelHeader.level=INFO
-joshua.ui.alignment.GridViewer.level=INFO
-joshua.util.Cache.level=INFO
-joshua.util.sentence.alignment.AlignmentGrids.level=INFO
+## Class name for configurator to process default initialization configuration file.
+# log4j.configurationClass
 
-joshua.regression.BleuRegression.level=INFO
+## If true, the thread class loader will be ignored when loading classes.
+# log4j.ignoreTCL