Re: [Dclib-devel] Hello,can you add some feature in dlib
Brought to you by:
davisking
From: Davis K. <dav...@us...> - 2009-06-19 01:17:20
|
I just added a set_output_hook() function to the logger object so that you can do this. The new code is in subversion and there is a snapshot also at http://davis.sytes.net/~davis/release/ if you want to try it out. Cheers, Davis On Wed, May 20, 2009 at 10:30 AM, 水波 <ti...@gm...> wrote: > I thought that if the dlib::logger has one interface or hook like these, > will let the matter be simpler. > > bool OnLog( > const std::string& logger_name, > const log_level& l, > const uint64 thread_id, > const std::string& log_content > ); > or > void doLog( > const std::string& logger_name, > const log_level& l, > const uint64 thread_id, > const std::string& log_content, > bool& handled // default false > ); > With this interface,it's possible to custom logger behavior or easy > to store log in database.And then, to analyze log is easier. > > 2009/5/19 Davis King <dav...@us...> > >> Why do you want to change the number of threads in the thread pool? >> Typically I would think you would set it to the number of > > |