Zum Hauptinhalt gehen

Logging in fsm modules

Kommentare

1 Kommentar

  • Zendesk API User
    Author: bIT_sosswald - 6/16/2014 12:37

    Hi Ajay,

    to use the FS-logging mechanism just look at the static methods of the class "de.espirit.common.base.Logging".

    A simple logging example would look like this:

    import de.espirit.common.base.Logging;

    public class LoggingExample {

        private final Class<?> LOGGER = this.getClass();

        public void doSomeLogging(){

            Logging.logDebug("This is a debug log message.", LOGGER);

            Logging.logInfo("This is a info log message.", LOGGER);

            Logging.logWarning("This is a warning log message.", LOGGER);

            Logging.logError("This is a error log message.", LOGGER);

        }

    }

    If you use this logging mechanism the log messages will appear e.g. in the execution log of your schedule job if you start your module with the help of a job.

    Or you can just look at the "fs-server.log" inside the directory "...\FirstSpirit5\log\"

    How you can remote debug a module you can see in this post: https://community.e-spirit.com/community/developer/blog/2010/07/08/debug-a-firstspirit-server-remotly-with-intellij

    It is similar with eclipse.

    Greetings

    Sandro

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.