Berkeley DB: DbEnv::set_error_stream
Полезная информация


#include <db_cxx.h>

void DbEnv::set_error_stream(class ostream*);


Set the C++ ostream used for displaying Berkeley DB error messages.

The DbEnv::set_errfile method specifies a C library FILE * for the same purpose. Alternatively, you can use the DbEnv::set_errcall method to capture errors in a way that does not use output streams. It is unwise to mix these approaches.



See Also

DbEnv::appinit, DbEnv::appexit, DbEnv::version, DbEnv::get_lg_info, DbEnv::get_lk_info, DbEnv::get_mp_info, DbEnv::get_tx_info, dbenv_set_data_dir, DbEnv::set_errcall, DbEnv::set_errfile, DbEnv::set_error_model, DbEnv::set_error_stream, DbEnv::set_errpfx, DbEnv::set_lg_max, DbEnv::set_lk_conflicts, DbEnv::set_lk_detect, DbEnv::set_lk_modes, DbEnv::set_lorder, DbEnv::set_mp_mmapsize, DbEnv::set_mp_size, DbEnv::set_tx_max, DbEnv::set_tx_recover and DbEnv::set_verbose.