Use context class as log stack storage