Localization and logging framework