Closed LinchaiTheShinigami closed 12 months ago
On my Visual Studio Editor I get a warning.
This is an invalid xsi:type 'http://www.nlog-project.org/schemas/NLog.xsd:ElasticSearch'.
Which impacts on a line with the format below:
<target xsi:type="ElasticSearch" layout="${logger} | ${threadid} | ${message}" >
I provide a schema location:
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.nlog-project.org/schemas/NLog.xsd http://www.nlog-project.org/schemas/NLog.xsd">
Is there an alternative xsd file to reference to or am I doing something wrong?
Do not think anyone has made a XSD-Schema for the ElasticTarget. The easy way of getting rid of the warning is changing xsi:type="ElasticSearch" to type="ElasticSearch" (removing xsi:-prefix).
xsi:type="ElasticSearch"
type="ElasticSearch"
xsi:
On my Visual Studio Editor I get a warning.
This is an invalid xsi:type 'http://www.nlog-project.org/schemas/NLog.xsd:ElasticSearch'.
Which impacts on a line with the format below:
<target xsi:type="ElasticSearch" layout="${logger} | ${threadid} | ${message}" >
I provide a schema location:
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.nlog-project.org/schemas/NLog.xsd http://www.nlog-project.org/schemas/NLog.xsd">
Is there an alternative xsd file to reference to or am I doing something wrong?