Re: [Dclib-devel] Hello,can you add some feature in dlib
Brought to you by:
davisking
|
From: Davis K. <dav...@us...> - 2009-05-23 14:47:33
|
Ah, indeed. I'll see about adding some sort of hook like this into the logger. It probably won't make it into the next release (which I plan on putting out in a few days) but I think I'll probably add it into the following release. 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 > > |