diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-04-27 13:52:25 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-04-27 13:52:25 +0200 |
commit | 04c1324c57692dfd22fab211a7443aaf484f07ce (patch) | |
tree | 9dcc8f36d6d94f02b7c3b2ed1485a50417e3b5e0 /brep/module | |
parent | b4c7f615916cd41e4772c5dc1b2f9f59b3b2ae6c (diff) |
Implement module configuration, cleanup the code
Diffstat (limited to 'brep/module')
-rw-r--r-- | brep/module | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/brep/module b/brep/module index d976559..54d41cf 100644 --- a/brep/module +++ b/brep/module @@ -30,7 +30,7 @@ namespace brep using web::response; using web::log; - // And this exception indicated a server error (5XX). In particular, + // This exception indicated a server error (5XX). In particular, // it is thrown by the fail diagnostics stream and is caught by the // module implementation where it is both logged as an error and // returned to the user with the 5XX status code. @@ -98,19 +98,23 @@ namespace brep virtual void handle (request&, response&, log&); + virtual void + init (const char* path); + // Diagnostics implementation details. // private: log* log_ {nullptr}; // Diagnostics backend provided by the web server. + public: // Extract function name from a __PRETTY_FUNCTION__. // Throw std::invalid_argument if fail to parse. // static std::string - func_name (const std::string& pretty_name); + func_name (const char* pretty_name); void - log_write (diag_data&&) const; + log_write (const diag_data&) const; protected: const diag_epilogue log_writer_; |