core/src/main/java/io/tracee/contextlogger/profile/ProfileLookup.java
static Profile getProfileFromSystemProperties() {

		Profile result = null;

		// try to get system property
		String systemPropertyProfileName = System.getProperty(ProfilePropertyNames.PROFILE_SET_GLOBALLY_VIA_SYSTEM_PROPERTIES);

		if (systemPropertyProfileName != null) {

			// try to convert String to enum value
			try {
				result = Profile.valueOf(systemPropertyProfileName);
			} catch (IllegalArgumentException e) {
				logger.warn("Tracee ContextLoggerBuilder profile property ('" + ProfilePropertyNames.PROFILE_SET_GLOBALLY_VIA_SYSTEM_PROPERTIES
						+ "') is set to the invalid value '" + systemPropertyProfileName + "' ==> Use default profile");
			}
		}

		return result;
	}
static Profile getProfileFromSystemProperties() {

		Profile result = null;

		// try to get system property
		String systemPropertyProfileName = System.getProperty(ProfilePropertyNames.PROFILE_SET_GLOBALLY_VIA_SYSTEM_PROPERTIES);

		if (systemPropertyProfileName != null) {

			// try to convert String to enum value
			try {
				result = Profile.valueOf(systemPropertyProfileName);
			} catch (IllegalArgumentException e) {
				logger.warn("Tracee ContextLoggerBuilder profile property ('" + ProfilePropertyNames.PROFILE_SET_GLOBALLY_VIA_SYSTEM_PROPERTIES
						+ "') is set to the invalid value '" + systemPropertyProfileName + "' ==> Use default profile");
			}
		}

		return result;
	}
static Profile getProfileFromSystemProperties ( ) { Profile result = null ; // try to get system property String systemPropertyProfileName = System . getProperty ( ProfilePropertyNames . PROFILE_SET_GLOBALLY_VIA_SYSTEM_PROPERTIES ) ; if ( systemPropertyProfileName != null ) { // try to convert String to enum value try { result = Profile . valueOf ( systemPropertyProfileName ) ; } catch ( IllegalArgumentException e ) { logger . warn ( "Tracee ContextLoggerBuilder profile property ('" + ProfilePropertyNames . PROFILE_SET_GLOBALLY_VIA_SYSTEM_PROPERTIES + "') is set to the invalid value '" + systemPropertyProfileName + "' ==> Use default profile" ) ; } } return result ; }
Gets the profile defined via the system properties.

@return returns the profile defined via the system properties. Returns null if property is not set or set to an invalid value
Gets the profile defined via the system properties .