Java slf4j Logger setClusterShard(String cluster, String shard)

Here you can find the source of setClusterShard(String cluster, String shard)

Description

set Cluster Shard

License

Apache License

Declaration

public static void setClusterShard(String cluster, String shard) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import org.slf4j.MDC;

public class Main {
    public static void setClusterShard(String cluster, String shard) {
        MDC.put("xpipe.cluster.shard", "[" + cluster + "." + shard + "]");
    }/*from  w w w.ja  v a  2 s.  com*/
}

Related

  1. request(String infoMessage)
  2. restoreContext(Map mdcContextMap)
  3. rosettaShell(ArrayList a)
  4. set(String key, String value)
  5. setbizSeq(String bizSeq)
  6. setContext(String value)
  7. setDefaultLogger()
  8. setLogger(Logger logger)
  9. setOutputFile(String filename)