com.att.nsa.logging.LoggingContextFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of saToolkit Show documentation
Show all versions of saToolkit Show documentation
Library of code used in various service assurance systems
/*******************************************************************************
* Copyright (c) 2016 AT&T Intellectual Property. All rights reserved.
*******************************************************************************/
package com.att.nsa.logging;
import com.att.nsa.logging.impl.Slf4jLoggingContext;
/**
* A factory for setting up a LoggingContext
*
*
*/
public class LoggingContextFactory
{
public static class Builder
{
/**
* Inherit values from a base context
* @param lc
* @return this builder
*/
public Builder withBaseContext ( LoggingContext lc )
{
fBase = lc;
return this;
}
/**
* Build the logging context.
* @return a new logging context
*/
public LoggingContext build ()
{
return new Slf4jLoggingContext ( fBase );
}
private LoggingContext fBase = null;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy