Adding castlogs and printing svg to stdout