RSS

FAQ

Below is a list of frequently asked questions about the kallasoft SmugMug Java API.

  • How do I enable logging in the kallasoft SmugMug Java API in order to see exactly what it is doing?
    • The kallasoft SmugMug Java API uses LogBack for it’s logging framework. By default the binary release builds do not include a LogBack configuration file in them which instructs the logging to generate output, we do this to keep the default binaries “silent”. If you wish to enable logging in the API, include a file named logback.xml in the classpath, or place it inside the root of the JAR file and you can use this initial content as a starting place:
      <code>
      <configuration>
      	<appender name="STDOUT"
      		class="ch.qos.logback.core.ConsoleAppender">
      		<layout class="ch.qos.logback.classic.PatternLayout">
      			<Pattern>
      				%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
      			</Pattern>
      		</layout>
      	</appender>
      	<root>
      		<level value="trace" />
      		<appender-ref ref="STDOUT" />
      	</root>
      </configuration>
      <code>

0 Comments For This Post

1 Trackbacks For This Post

  1. Added a SmugMug Java API FAQ | kallasoft Says:

    [...] new FAQ section has been added for the kallasoft SmugMug Java API. api, java, [...]

Leave a Reply