From: James A. <ja...@ja...> - 2014-05-29 21:25:49
|
Hi Dayu. 1.x uses Commons-logging instead of SLF4j, but the general principal is the same. If you add log4j to your classpath (I'm not positive but I don't think C-L supports Logback as a backing library) it should automatically get picked up and start logging. In fact, I think commons-logging defaults to logging to the console even without a backing library. Cheers, James On Thu, May 29, 2014 at 11:31 AM, Dayu Han <da...@st...> wrote: > Thanks for the reply, James. I should have been more specific in the first > place. We use HAPI 1.x, not HAPI 2.x, I wonder if HAPI takes the same > approach in both releases. > > Dayu > > On May 29, 2014, at 9:28 AM, James Agnew <ja...@ja...> wrote: > > Hi Dayu, > > HAPI uses SLF4j ( http://www.slf4j.org/ ) for logging. SLF4j is a facade > framework which forwards logging to an underlying framework, such as LOG4j > or Logback. > > The easiest way to get started with logging is to just add a logback JAR > to your classpath. If you're already using a specific framework, you just > need to add the appropriate SLF4j adapter JAR. > > Cheers, > James > > > On Thu, May 29, 2014 at 9:17 AM, Dayu Han <da...@st...> wrote: > >> Hello >> >> Just wonder if HAPI has any logging, if yes, how to turn it on. >> >> Thanks >> Dayu >> -- >> Dayu Han >> Software Developer >> Strata Health Solutions >> Phone: +1 403 261 0855 ext 2102 >> www.stratahealth.com >> >> >> >> >> >> >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> Time is money. Stop wasting it! Get your web API in 5 minutes. >> www.restlet.com/download >> http://p.sf.net/sfu/restlet >> _______________________________________________ >> Hl7api-devel mailing list >> Hl7...@li... >> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >> >> > > -- > Dayu Han > Software Developer > Strata Health Solutions > Phone: +1 403 261 0855 ext 2102 > www.stratahealth.com > > > > > > > > > > > |