Properly allocate log class