private void setupLogger()
{
Logger logger = ThreadLocalToolkit.getLogger();
if (logger != null)
{
FXGLogger fxgLogger = FXGLog.getLogger();
if (!(fxgLogger instanceof FlexLoggerAdapter))
{
fxgLogger = new FlexLoggerAdapter(FXGLogger.ALL);
FXGLog.setLogger(fxgLogger);
}