When I initialize GROWL log4jnet does not create log file

23 views
Skip to first unread message

Larry Presswood

unread,
Apr 16, 2012, 3:14:48 PM4/16/12
to growl for windows
I am attempting to integrate Growl into a windows service.

Without Growl my log4 works fine but as soon as I initialize growl no
more log file??

Any ideas

Brian Dunnington

unread,
Apr 16, 2012, 3:42:42 PM4/16/12
to growl-fo...@googlegroups.com
When you debug the service, what is the behavior? Does log4net still
get called? Do the methods still get hit? Does the log file just not
get created? Are any exceptions thrown?

When you say 'initialize Growl', what do you mean? Include a reference
to the assembly? Create a GrowlConnector object? Call the .Register()
method? Or do you mean you launch the actual Growl app and that is
interfering with your service?

Neither Growl itself or the .NET connector use log4net or anything
similar. I suppose that if the connector threw an exception,
subsequent code may not execute, but you would have to debug your app
to see where/if that is the case.

> --
> You received this message because you are subscribed to the Google Groups "growl for windows" group.
> To post to this group, send email to growl-fo...@googlegroups.com.
> To unsubscribe from this group, send email to growl-for-wind...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/growl-for-windows?hl=en.
>

Larry Presswood

unread,
Apr 16, 2012, 3:46:45 PM4/16/12
to growl-fo...@googlegroups.com
No problem with the assemblies included in the code

Still working on debugging the service but figured i would check to see if there is a known issue..
Sounds like that is not thecase

thanks

> --
> You received this message because you are subscribed to the Google Groups "growl for windows" group.
> To post to this group, send email to growl-fo...@googlegroups.com.
> To unsubscribe from this group, send email to growl-for-wind...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/growl-for-windows?hl=en.
>

Larry Presswood
tspo...@gmail.com

Alan Montgomery

unread,
Apr 16, 2012, 4:29:21 PM4/16/12
to growl-fo...@googlegroups.com
On Mon, 16 Apr 2012 20:46:45 +0100, Larry Presswood <tspo...@gmail.com>
wrote:

> No problem with the assemblies included in the code
>
> Still working on debugging the service but figured i would check to see
> if there is a known issue..
> Sounds like that is not thecase
>

Make sure you are linking against the right libraries. I had a problem
that resulted in exceptions being thrown in strange places, that turned
out to be trying to use growl.dll in a .Net 4.0 application. If you want
to use the dll, you need to build against .Net 2.0


> thanks
>
>
> On Apr 16, 2012, at 3:14 PM, Larry Presswood wrote:
>
>> I am attempting to integrate Growl into a windows service.
>>
>> Without Growl my log4 works fine but as soon as I initialize growl no
>> more log file??
>>
>> Any ideas
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "growl for windows" group.
>> To post to this group, send email to growl-fo...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> growl-for-wind...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/growl-for-windows?hl=en.
>>
>
> Larry Presswood
> tspo...@gmail.com
>
>
>


--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

Larry Presswood

unread,
Apr 16, 2012, 4:44:43 PM4/16/12
to growl-fo...@googlegroups.com
thats it

can i build growl against net 4.0??

I have to use net 4.0 for other features

Alan Montgomery

unread,
Apr 16, 2012, 8:20:51 PM4/16/12
to growl-fo...@googlegroups.com
On Mon, 16 Apr 2012 21:44:43 +0100, Larry Presswood <tspo...@gmail.com>
wrote:

> thats it


>
> can i build growl against net 4.0??
>
> I have to use net 4.0 for other features
>

I think if you build all the Growl libraries you need against 4.0 and put
them in with your server that would work. All the communication should be
via GNTP on a socket.

Larry Presswood

unread,
Apr 20, 2012, 1:35:34 PM4/20/12
to growl-fo...@googlegroups.com
BTW

I was able to build core and connector with .net4.0 and it works like a charm

still having log4net issues but not related

thanks

Brian Dunnington

unread,
Apr 20, 2012, 1:37:39 PM4/20/12
to growl-fo...@googlegroups.com
Glad to hear you got it all sorted out (at least on the Growl side of things).

Larry Presswood

unread,
Apr 20, 2012, 1:49:02 PM4/20/12
to growl-fo...@googlegroups.com
What is the expected behavior if grown is not installed?

Will I get an exception when I attempt to register / notify or is it silent?

Brian Dunnington

unread,
Apr 20, 2012, 1:57:16 PM4/20/12
to growl-fo...@googlegroups.com
You wont get an exception, but you will get an error response. So in
the GrowlConnector, if you wire up a handler to the ErrorResponse
event, you can handle the error. The error code will be 200 (timed
out) or 201 (network error) if Growl cannot connect. (If the forward
is successful, you wont get an ErrorResponse event, but instead will
get the OKResponse event).

Larry Presswood

unread,
Apr 20, 2012, 1:58:23 PM4/20/12
to growl-fo...@googlegroups.com
thanks

Larry

unread,
Apr 21, 2012, 4:21:43 PM4/21/12
to Larry Presswood, growl-fo...@googlegroups.com
Can i bundle your installer in my commercial app or does your license requir that it be seperate?

Sent from my iPhone

Brian Dunnington

unread,
Apr 23, 2012, 12:15:44 PM4/23/12
to growl-fo...@googlegroups.com
You can bundle the installer or pretty much do whatever else you want,
as long as you give credit (modified BSD license).
Reply all
Reply to author
Forward
0 new messages