Adding Growl as target

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Adding Growl as target

RearAdmiralCrunch
Hi All,

I've followed the post about adding growl, and have the growl binaries in my solution. I still can't get growl to get my logs.

When I do exactly as it said:
<target name="growl" type="GrowlNotify" password="" host="" port="" />
I get a The element http://www.nlog-project.org/schemas/NLog.xsd:type is abstract or it's type is abstract.

When I change the target to
<target name="growl" xsi:type="GrowlNotify" password="" host="" port="" />
I get a This is an invalid xsi:type http://www.nlog-project.org/schemas/NLog.xsd:GrowlNotify.

..What am I doing wrong?
I have NLog v2, and the latest Growl binaries..

Reply | Threaded
Open this post in threaded view
|

Re: Adding Growl as target

btsoi
I have exactly the same problem , any solution here?
Reply | Threaded
Open this post in threaded view
|

Re: Adding Growl as target

btsoi
In reply to this post by RearAdmiralCrunch
I have exactly the same problem , any solution here?
Reply | Threaded
Open this post in threaded view
|

Re: Adding Growl as target

Mykola Rykov
Hi!
I've faced with a same problem using NLog v.2.
Check that you've added to your app:

Growl.Connector.dll
Growl.CoreLibrary.dll
NLog.Targets.GrowlNotify.dll

The latest one - NLog.Targets.GrowlNotify.dll - is not included in https://github.com/RyanFarley/NLogGrowlNotify/zipball/master
So I builded it from Jarek's sources :)

And in a NLog.config I wrote:

<?xml version="1.0" encoding="utf-8" ?>
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

        <extensions>
                <add assembly="NLog.Targets.GrowlNotify" />
        </extensions>

        <targets>
                <target name="growl"
                                xsi:type="GrowlNotify"
                                host="localhost"/>
        </targets>

        <rules>
                <logger name="GrowlLogs" minlevel="Trace" writeTo="growl" />
        </rules>
</nlog>

By the way, this:

<targets>
        <target name="growl"
                        type="GrowlNotify"
                        host="localhost"/>
</targets>

works for me too.