Throw an IllegalStateException if not initialized.
()
| 253 | * Throw an IllegalStateException if not initialized. |
| 254 | */ |
| 255 | static void assertInitialization() { |
| 256 | if (!sIsInitialized) { |
| 257 | throw new IllegalStateException("Do you forget to initialize XLog?"); |
| 258 | } |
| 259 | } |
| 260 | |
| 261 | /** |
| 262 | * Start to customize a {@link Logger} and set the log level. |