Thanks, Maruan.

As for getting it to work under .Net, Jeroen Frijters, the IKVM creator,
explained:

You can set a system property in your app.config file (in Visual Studio, if
you manually create it, you should name it [YourExeName].exe.config and put
it next to the .exe file).

<?xml version="1.0"?>
<configuration>
 <appSettings>
   <add key="ikvm:java.util.logging.
config.file" value="src/test/resources/logging.properties" />
 </appSettings>
</configuration>

And it's working for me.

Daniel

On Thu, Apr 1, 2010 at 2:41 PM, Maruan Sahyoun <sahy...@fileaffairs.de>wrote:

> Hi
>
> eg. at the command line you can type java
> -Djava.util.logging.config.file=logging.properties
>
> Hope that helps
>
> Kind regards
>
> Maruan Sahyoun
>
> Am 01.04.2010 um 20:37 schrieb Daniel Wilson:
>
> > In the tests run by JUnit, we have logging turned on ... with this:
> >      <junit ... >
> >            <sysproperty key="java.util.logging.config.file"
> >                         value="src/test/resources/logging.properties"/>
> >       ...
> >      </junit>
> >
> > in the ANT script.
> >
> > But, how would I tell my (real, not JUnit) application to turn logging
> on?
> >
> > After that, I need to figure it out in the .Net version ... but hopefully
> > that will be the same.
> >
> > Thanks!
> >
> > Daniel
>
>

Reply via email to