3

I have a custom Autenticator in a Worklight hybrid project like this

public class MyCustomAuthenticator implements WorkLightAuthenticator{
    private static final Logger logger = Logger.getLogger(MyCustomAuthenticator.class.getName());

    private Map<String, Object> authenticationData = null;

    public void init(Map<String, String> options) throws MissingConfigurationOptionException {
        logger.info("MyCustomAuthenticator initialized");
    }
    ...
}

But I don't see where does Worklight put those logger messages. Am I missing something?

Idan Adar
  • 44,156
  • 13
  • 50
  • 89

3 Answers3

1

In your server/conf folder look for the development.logging.properties file and uncomment the following properties:

 com.worklight.level = FINE
 java.util.logging.FileHandler.level = FINE

Then see if the logs appear in your development console.

jnortey
  • 1,625
  • 2
  • 10
  • 17
1

Perhaps this new instructional video, "Logging and Debugging in Worklight Server", will help you to debug your Java code: http://www.youtube.com/watch?v=KmWBrCilt3Q

The shown in the video assumes you are using Worklight 6.0.

Also see:

Community
  • 1
  • 1
Idan Adar
  • 44,156
  • 13
  • 50
  • 89
0

What is the worklight version? If it 5.0.5 and above, after activating your project, the logs should be in ...WorklightServerHome\PROJECT_NAME\logs

Itay Hindy
  • 71
  • 3