Codota Logo
ThreadBasedMapper
Code IndexAdd Codota to your IDE (free)

How to use
ThreadBasedMapper
in
de.mhus.lib.logging.level

Best Java code snippets using de.mhus.lib.logging.level.ThreadBasedMapper (Showing top 15 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: de.mhus.lib/mhu-lib-core

@Override
public boolean isLocalTrail() {
  ThreadMapperConfig c = get();
  return c == null ? false : c.isLocal();
}
origin: de.mhus.lib/mhu-lib-core

@Override
public void doResetTrail() {
  release();
}
origin: de.mhus.lib/mhu-lib-logging

/** {@inheritDoc} */
@Override
public void doConfigureTrail(String config) {
  //if (backup == null) return;
  if (MString.isEmpty(config)) config = ThreadMapperConfig.MAP_LABEL;
  set(config);
}
origin: de.mhus.lib/mhu-lib-karaf

} break;
case "trail": {
  api.getLogFactory().setLevelMapper(new ThreadBasedMapper());
  System.out.println("Set Trail Mapper OK " + api.getLogFactory().getLevelMapper() );
} break;
origin: de.mhus.lib/mhu-lib-logging

/** {@inheritDoc} */
@Override
public LEVEL map(Log log, LEVEL level, Object... msg) {
  ThreadMapperConfig config = get();
  if (config == null) return level;
  return config.map(log, level, msg);
}
origin: de.mhus.lib/mhu-lib-core

@Override
public void doConfigureTrail(String config) {
  //if (backup == null) return;
  if (MString.isEmpty(config)) config = ThreadMapperConfig.MAP_LABEL;
  set(config);
}
origin: de.mhus.lib/mhu-lib-logging

/** {@inheritDoc} */
@Override
public void doResetTrail() {
  release();
}
origin: de.mhus.lib/mhu-lib-core

@Override
public String doSerializeTrail() {
  ThreadMapperConfig c = get();
  return c == null ? null : c.doSerialize();
}
origin: de.mhus.lib/mhu-lib-core

public void set(String config) {
  if (config == null || !config.startsWith(ThreadMapperConfig.MAP_LABEL)) return;
  ThreadMapperConfig c = new ThreadMapperConfig();
  c.doConfigure(config);
  set(c);
}

origin: de.mhus.lib/mhu-lib-core

public ThreadMapperConfig get() {
  ThreadMapperConfig config = map.get();
  if (config == null) return null;
  if (config.isTimedOut()) {
    release();
    return null;
  }
  return config;
}

origin: de.mhus.lib/mhu-lib-logging

/** {@inheritDoc} */
@Override
public String doSerializeTrail() {
  ThreadMapperConfig c = get();
  return c == null ? null : c.doSerialize();
}
origin: de.mhus.lib/mhu-lib-logging

/**
 * <p>set.</p>
 *
 * @param config a {@link java.lang.String} object.
 */
public void set(String config) {
  if (config == null || !config.startsWith(ThreadMapperConfig.MAP_LABEL)) return;
  ThreadMapperConfig c = new ThreadMapperConfig();
  c.doConfigure(config);
  set(c);
}

origin: de.mhus.lib/mhu-lib-logging

/**
 * <p>get.</p>
 *
 * @return a {@link de.mhus.lib.logging.level.ThreadMapperConfig} object.
 */
public ThreadMapperConfig get() {
  ThreadMapperConfig config = map.get();
  if (config == null) return null;
  if (config.isTimedOut()) {
    release();
    return null;
  }
  return config;
}

origin: de.mhus.lib/mhu-lib-core

@Override
public LEVEL map(Log log, LEVEL level, Object... msg) {
  ThreadMapperConfig config = get();
  if (config == null) return level;
  return config.map(log, level, msg);
}
origin: de.mhus.lib/mhu-lib-logging

/** {@inheritDoc} */
@Override
public boolean isLocalTrail() {
  ThreadMapperConfig c = get();
  return c == null ? false : c.isLocal();
}
de.mhus.lib.logging.levelThreadBasedMapper

Javadoc

ThreadBasedMapper class.

Most used methods

  • get
    get.
  • release
    release.
  • set
    set.
  • <init>

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSharedPreferences (Context)
  • startActivity (Activity)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now