diff --git a/std/experimental/logger/core.d b/std/experimental/logger/core.d index ff5eac4e201..9c75c94105c 100644 --- a/std/experimental/logger/core.d +++ b/std/experimental/logger/core.d @@ -825,7 +825,7 @@ abstract class Logger } /** Logs a part of the log message. */ - protected void logMsgPart(const(char)[] msg) @safe + protected void logMsgPart(scope const(char)[] msg) @safe { static if (isLoggingActive) { diff --git a/std/experimental/logger/filelogger.d b/std/experimental/logger/filelogger.d index aa884a7d091..60b93e804e1 100644 --- a/std/experimental/logger/filelogger.d +++ b/std/experimental/logger/filelogger.d @@ -138,7 +138,7 @@ class FileLogger : Logger /* This methods overrides the base class method and writes the parts of the log call directly to the file. */ - override protected void logMsgPart(const(char)[] msg) + override protected void logMsgPart(scope const(char)[] msg) { formattedWrite(this.file_.lockingTextWriter(), "%s", msg); }