APISonar


com.facebook.buck.util.network.BatchingLogger.log

> com > facebook > buck > util > network > BatchingLogger > log
com APIs facebook APIs buck APIs util APIs network APIs BatchingLogger APIs log APIs

Example 1
private final BatchingLogger logger;

  public void onHttpArtifactCacheEvent(HttpArtifactCacheEvent.Finished event) {
    final String buildIdString = event.getBuildId().toString();
    ObjectNode jsonNode = jsonConverter.valueToTree(event);
    if (!environmentInfo.isEmpty()) {
      jsonNode.set("environment",  jsonConverter.valueToTree(environmentInfo));
    }

    String hiveRow = HiveRowFormatter.newFormatter()
        .appendString(jsonNode.toString())
        .appendString(buildIdString)
        .build();
    logger.log(hiveRow);
  }