libsent/src/util/jlog.c File Reference

Message text output and error exit functions. More...

#include <sent/stddefs.h>
#include <sent/tcpip.h>
#include <stdarg.h>

Go to the source code of this file.

Defines

#define MAX_PRINTF_LEN   4096
 Maximum string length at one printf call.

Functions

void jlog_set_output (FILE *fp)
 Set file pointer to output the log.
FILE * jlog_get_fp ()
 Return the current file pointer to output log.
void jlog (char *fmt,...)
 Output a normal message to log.
int jlog_flush ()
 Flush text message.

Variables

static FILE * outdev
static boolean initialized = FALSE


Detailed Description

Message text output and error exit functions.

These are generic functions for text message output. Most of text messages such as recognition results, status, informations in Julius/Julian will be output to TTY or via network using these functions. The character set conversion will also be performed here.

Author:
Akinobu LEE
Date:
Thu Feb 17 16:02:41 2005
Revision
1.1.1.1

Definition in file jlog.c.


Function Documentation

void jlog_set_output ( FILE *  fp  ) 

Set file pointer to output the log.

Set to NULL to totally disable the log outputs.

Parameters:
fp [in] file pointer or NULL to disable

Definition at line 52 of file jlog.c.

FILE* jlog_get_fp (  ) 

Return the current file pointer to output log.

Returns:
the file pointer.

Definition at line 65 of file jlog.c.

Referenced by check_hmm_limit(), make_dfa_voca_ref(), print_engine_info(), and wordgraph_remove_context().

void jlog ( char *  fmt,
  ... 
)

Output a normal message to log.

Parameters:
fmt [in] format string, like printf.
... [in] variable length argument like printf.

Definition at line 80 of file jlog.c.

Referenced by accept_from(), add_bigram(), add_unigram(), adin_cut(), adin_cut_callback_store_buffer(), adin_file_begin(), adin_file_close(), adin_file_open(), adin_file_read(), adin_file_standby(), adin_initialize(), adin_initialize_user(), adin_mic_begin(), adin_mic_end(), adin_mic_read(), adin_mic_standby(), adin_netaudio_read(), adin_setup_all(), adin_stdin_begin(), adin_stdin_read(), adin_tcpip_begin(), adin_tcpip_end(), adin_tcpip_read(), adin_tcpip_send_pause(), adin_tcpip_send_resume(), adin_tcpip_send_terminate(), adin_tcpip_standby(), adin_thread_create(), adjust_sc_index(), aptree_remove_entry(), build_state2gs(), callback_add_core(), callback_delete(), callback_exec(), callback_exec_adin(), callback_list_error(), charconv_iconv_setup(), charconv_libjcode_setup(), charconv_win32(), charconv_win32_setup(), check_format(), check_header(), check_hmm_limit(), check_hmm_options(), check_wchmm(), checkpath(), clear_stocker(), CMN_load_from_file(), CMN_save_to_file(), codebook_add(), compaction_successor(), config_file_parse(), cpair_append(), create_mfcc_calc_instances(), decode_end(), decode_proceed(), dens_add(), detect_end_of_segment(), dfa_pause_word_append(), dfa_symbol_lookup(), do_align(), expand_env(), extract_cpair(), fclose_readfile(), finalize_segment(), fopen_readfile(), fopen_writefile(), get_dens_data(), get_state_data(), get_total_info(), get_trans_data(), get_var_data(), getl_fd(), getl_sd(), gmm_init(), gmm_proceed(), gms_init(), graph_make_order(), guess_abs_e_location(), guess_basenum(), guess_if_cd_hmm(), hmm_add_physical_to_logical(), hmm_add_pseudo_phones(), hmm_add_pseudo_phones_sub(), hmm_check(), htk_config_file_parse(), htk_hmm_has_several_arc_on_edge(), htk_hmm_set_pause_model(), htk_hmmdata_add(), init_dfa(), init_hmminfo(), init_ngram_arpa(), init_ngram_arpa_additional(), init_ngram_bin(), init_voca(), init_wordlist(), initialize_dict(), initialize_GMM(), initialize_GSHMM(), initialize_HMM(), j_add_option(), j_create_instance_from_jconf(), j_final_fusion(), j_get_amconf_by_id(), j_get_amconf_by_name(), j_get_lmconf_by_id(), j_get_lmconf_by_name(), j_get_searchconf_by_id(), j_get_searchconf_by_name(), j_jconf_am_regist(), j_jconf_finalize(), j_jconf_lm_regist(), j_jconf_search_regist(), j_launch_recognition_instance(), j_load_all(), j_load_am(), j_load_lm(), j_mfcccalc_new(), j_process_activate(), j_process_activate_by_id(), j_process_add_lm(), j_process_am_remove(), j_process_deactivate(), j_process_deactivate_by_id(), j_process_lm_remove(), j_process_remove(), list_error(), make_base_phone(), make_connection(), make_connection_unix(), make_costbl_hamming(), make_costbl_makemfcc(), make_dfa_voca_ref(), make_fft_table(), make_log_tbl(), make_ngram_ref(), make_sintbl_wcep(), make_successor_list(), make_voca_ref(), mark_word_edge(), merge_contexts(), multigram_activate(), multigram_add(), multigram_add_prefix_filelist(), multigram_add_prefix_list(), multigram_add_words_to_grammar(), multigram_append_to_global(), multigram_build(), multigram_deactivate(), multigram_delete(), multigram_exec_activate(), multigram_exec_delete(), multigram_get_grammar_by_id(), multigram_get_grammar_by_name(), multigram_read_file_and_add(), multigram_rebuild_wchmm(), multigram_update(), mycalloc(), myfread(), mymalloc(), myread(), myrealloc(), NA_standby(), new_make_word_hmm_with_lm(), new_SS_load_from_file(), new_str2phseq(), new_str2wordseq(), next_arg(), ngram_compact_context(), ngram_nextwords(), ngram_prob(), ngram_read_arpa(), ngram_read_bin(), ngram_write_bin(), opt_parse(), param_alloc(), param_check_and_adjust(), param_qualstr2code(), param_strip_zero(), print_engine_info(), print_format(), print_jconf_overview(), put_all_in_stack(), rd(), rd_data(), rd_dens(), rd_header(), rd_para(), rd_state(), rd_tmix(), rd_trans(), rd_var(), rddfa_line(), rderr(), rdhmmdef(), rdhmmlist(), rdn_strfunc(), rdnfunc(), read_binhmm(), read_global_opt(), read_param(), ready_as_server(), RealTimeCMNUpdate(), RealTimeInit(), RealTimeParam(), RealTimePipeLine(), RealTimePipeLinePrepare(), regist_cdset(), remove_cdset(), reset_count_zc_e(), scan_word(), select_param_vmark(), set_beam_width(), set_ngram(), set_terminal_words(), set_unigram(), set_unknown_id(), setup_wav(), state_add(), store_result_pass2(), strip_zero(), swap_leftword(), swap_rightword(), tmix_create_codebook_index(), trans_add(), trans_ok_p(), useropt_exec(), var_add(), var_read(), viterbi_segment(), voca_load_htkdict_line(), voca_load_wordlist_line(), voca_lookup_wid(), Wav2MFCC(), wav2mfcc(), wchmm_add_word(), winfo_expand(), wordgraph_add_leftword(), wordgraph_add_rightword(), wordgraph_adjust_boundary(), wordgraph_adjust_boundary_sub(), wordgraph_check_and_add_leftword(), wordgraph_check_and_add_rightword(), wordgraph_depth_cut(), wordgraph_new(), wordgraph_purge_leaf_nodes(), wordgraph_remove_context(), write_binhmm(), write_header(), wrtfunc(), wrwav_close(), wt(), wt_data(), wt_dens(), wt_state(), wt_tmix(), wt_trans(), and wt_var().

int jlog_flush (  ) 

Flush text message.

The output device can be changed by set_print_func().

Returns:
the same as fflush, i.e. 0 on success, other if failed.

Definition at line 103 of file jlog.c.

Referenced by rderr().


Generated on Tue Dec 18 16:01:40 2007 for Julius by  doxygen 1.5.4