aboutsummaryrefslogtreecommitdiffstats
path: root/include/crow/app.h
diff options
context:
space:
mode:
authoripknHama <ipknhama@gmail.com>2017-09-18 02:58:53 +0900
committeripknHama <ipknhama@gmail.com>2017-09-18 02:58:53 +0900
commit2c26b6c1def35f7b509f699097fdfb9480e9461c (patch)
tree3c7097832e5380ed04e6dd5ae6f603059b62c1f9 /include/crow/app.h
parente93ba25f2cd156a6544a3c9894cd667906146874 (diff)
downloadcrow-2c26b6c1def35f7b509f699097fdfb9480e9461c.tar.gz
crow-2c26b6c1def35f7b509f699097fdfb9480e9461c.zip
Change default settings
- disable crow debug mode by default - expose `loglevel` method on `App` to change the logging level easily - add a startup message that guides how to change the logging level
Diffstat (limited to 'include/crow/app.h')
-rw-r--r--include/crow/app.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/crow/app.h b/include/crow/app.h
index cb72d3a..b454bf0 100644
--- a/include/crow/app.h
+++ b/include/crow/app.h
@@ -134,6 +134,12 @@ namespace crow
router_.debug_print();
}
+ self_t& loglevel(crow::LogLevel level)
+ {
+ crow::logger::setLogLevel(level);
+ return *this;
+ }
+
#ifdef CROW_ENABLE_SSL
self_t& ssl_file(const std::string& crt_filename, const std::string& key_filename)
{