summaryrefslogtreecommitdiff
path: root/boost/log/sinks/event_log_backend.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/log/sinks/event_log_backend.hpp')
-rw-r--r--boost/log/sinks/event_log_backend.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/boost/log/sinks/event_log_backend.hpp b/boost/log/sinks/event_log_backend.hpp
index 08d211cea7..5378295160 100644
--- a/boost/log/sinks/event_log_backend.hpp
+++ b/boost/log/sinks/event_log_backend.hpp
@@ -562,7 +562,7 @@ public:
* The following named parameters are supported:
*
* \li \c message_file - Specifies the file name that contains resources that
- * describe events and categories.
+ * describe events and categories. This parameter is mandatory unless \c registration is \c never.
* \li \c target - Specifies an UNC path to the remote server to which log records should be sent to.
* The local machine will be used to process log records, if not specified.
* \li \c log_name - Specifies the log in which the source should be registered.
@@ -625,7 +625,7 @@ private:
void construct(ArgsT const& args)
{
construct(
- filesystem::path(args[keywords::message_file]),
+ filesystem::path(args[keywords::message_file | filesystem::path()]),
args[keywords::target | string_type()],
args[keywords::log_name || &basic_event_log_backend::get_default_log_name],
args[keywords::log_source || &basic_event_log_backend::get_default_source_name],