private String getUser(HookContext hookContext) {
      return hookContext.getUgi().getShortUserName();
    }
Log events from hive hook using protobuf serialized format, partitioned by date.
ql/src/java/org/apache/hadoop/hive/ql/hooks/HiveProtoLoggingHook.java