我在我的一个项目中使用NLog,我正在尝试压缩文件的输出.我尝试使用compress文件属性,但是当我查看文件时,它们不会被压缩.
你能告诉我我可能做错了什么吗?
这是我的配置:
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<targets>
<target name="file" xsi:type="File" fileName="C:\Workspaces\log.xml"
layout="${message}" keepFileOpen="true"
archiveFileName = "C:\Workspaces\archived\log.{#####}.xml"
archiveAboveSize = "1048576" archiveNumbering = "Sequence"
fileAttributes="Compressed" concurrentWrites = "true"/>
</targets>
<rules>
<logger name ="*" minlevel="Debug" writeTo="file" />
</rules>
</nlog>
Run Code Online (Sandbox Code Playgroud)
克>
有没有办法使用API.AI结束Google Home与服务器的对话?
我假设我需要以某种方式访问expect_user_response并将其设置为false.
我也看到动作SDK你可以使用'assistant.tell()',但API.AI似乎无法访问.