Returns the WorldWind logger. @return The logger.
()
| 59 | * @return The logger. |
| 60 | */ |
| 61 | public static Logger logger() |
| 62 | { |
| 63 | try |
| 64 | { |
| 65 | // The Configuration singleton may not be established yet, so catch the exception that occurs if it's not |
| 66 | // and use the default logger name. |
| 67 | String loggerName = Configuration.getStringValue(AVKey.LOGGER_NAME, Configuration.DEFAULT_LOGGER_NAME); |
| 68 | return logger(loggerName); |
| 69 | } |
| 70 | catch (Exception e) |
| 71 | { |
| 72 | return logger(Configuration.DEFAULT_LOGGER_NAME); |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | /** |
| 77 | * Returns a specific logger. Does not access {@link gov.nasa.worldwind.Configuration} to determine the configured |
no test coverage detected