[ome-users] Extending OMERO fails

Josh Moore josh at glencoesoftware.com
Fri Mar 23 10:13:28 GMT 2012


On Mar 23, 2012, at 10:57 AM, Harri Jäälinoja wrote:

> On 22/03/12 20:16, Josh Moore wrote:
>> Sorry for being unclear. You'll have to copy hyldap.jar on top of lib/server/extensions.jar, i.e. replace the previous jar. I'm working on a new repository:
>> 
>>   https://github.com/joshmoore/ome-services-example
>> 
>> that will also do that copying for you, but I need to do more testing.
> 
> 
> Hi Josh,

Hi Harri,

> thanks, I hope I'll have time to try this later today. I am already optimistic that it will work, so here is my next question: How can I add logging to the bean? I might have to debug it (my optimism is limited :)

Heh.

The standard logging idiom at the moment is:

  import org.apache.commons.logging.LogFactory;
  import org.apache.commons.logging.Log;

  // ...

  private final static Log log = LogFactory.getLog(YourClass.class);

  // ...

  log.info("Logging in :" + bec);


You can configure logging for your class in etc/log4j.xml

Cheers,
~Josh


More information about the ome-users mailing list