jasperproject/jasper-client — pull request #171 by Holzhaus (2014-09-12 17:31:39+00:00)
Title: write pocketsphinx decoder output to debug logger

Pocketsphinx produces a lot of output:
```
INFO: cmn.c(175): CMN: 65.36 -4.37 -4.78 1.30 -0.22 0.29 0.79 1.40 -0.17 0.40 -0.43 0.36 -0.51
INFO: ngram_search_fwdtree.c(1549): 2381 words recognized (11/fr)
INFO: ngram_search_fwdtree.c(1551): 72377 senones evaluated (323/fr)
INFO: ngram_search_fwdtree.c(1553): 39160 channels searched (174/fr), 3960 1st, 31344 last
INFO: ngram_search_fwdtree.c(1557): 3478 words for which last channels evaluated (15/fr)
INFO: ngram_search_fwdtree.c(1560): 2974 candidate words for entering last phone (13/fr)
INFO: ngram_search_fwdtree.c(1562): fwdtree 0.03 CPU 0.013 xRT
INFO: ngram_search_fwdtree.c(1565): fwdtree 0.03 wall 0.014 xRT
INFO: ngram_search_fwdflat.c(302): Utterance vocabulary contains 1 words
INFO: ngram_search_fwdflat.c(937): 241 words recognized (1/fr)
INFO: ngram_search_fwdflat.c(939): 669 senones evaluated (3/fr)
INFO: ngram_search_fwdflat.c(941): 298 channels searched (1/fr)
INFO: ngram_search_fwdflat.c(943): 298 words searched (1/fr)
INFO: ngram_search_fwdflat.c(945): 26 word transitions (0/fr)
INFO: ngram_search_fwdflat.c(948): fwdflat 0.01 CPU 0.003 xRT
INFO: ngram_search_fwdflat.c(951): fwdflat 0.01 wall 0.003 xRT
INFO: ngram_search.c(1214): not found in last frame, using .222 instead
INFO: ngram_search.c(1266): lattice start node .0 end node .2
INFO: ngram_search.c(1294): Eliminated 12 nodes before end node
INFO: ngram_search.c(1399): Lattice has 14 nodes, 1 links
INFO: ps_lattice.c(1365): Normalizer P(O) = alpha(:2:222) = -1000224
INFO: ps_lattice.c(1403): Joint P(O,S) = -1000224 P(S|O) = 0
INFO: ngram_search.c(888): bestpath 0.00 CPU 0.001 xRT
INFO: ngram_search.c(891): bestpath 0.00 wall 0.000 xRT
```

With this PR, the output is redirected to a temporary file, whose contents are then redirected to the logger.debug() function.
It can then be easily hidden or shown by changing the logger's loglevel.