Fix deprecation warning.

This commit is contained in:
Sönke Ludwig 2021-01-12 10:13:04 +01:00
parent 05bc56dbba
commit 3fbc8bb397

View file

@ -642,7 +642,7 @@ final class SyslogLogger(OutputStream) : Logger {
string m_hostName;
string m_appName;
OutputStream m_ostream;
Facility m_facility;
SyslogFacility m_facility;
}
deprecated("Use `SyslogFacility` instead.")
@ -680,7 +680,7 @@ final class SyslogLogger(OutputStream) : Logger {
Logger uses the stream's write function when it logs and would hence
log forevermore.
*/
this(OutputStream stream, Facility facility, string appName = null, string hostName = hostName())
this(OutputStream stream, SyslogFacility facility, string appName = null, string hostName = hostName())
{
m_hostName = hostName != "" ? hostName : NILVALUE;
m_appName = appName != "" ? appName : NILVALUE;