Package com.yahoo.log
Class VespaFormatter
java.lang.Object
java.util.logging.Formatter
java.util.logging.SimpleFormatter
com.yahoo.log.VespaFormatter
Deprecated, for removal: This API element is subject to removal in a future version.
Should only be used internally in the log library
This class implements a log formatter which takes care of
formatting messages according to the VESPA common log format.
- Author:
- Bjorn Borud, arnej27959
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Deprecated, for removal: This API element is subject to removal in a future version. -
Constructor Summary
ConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Default constructorVespaFormatter
(String serviceName, String componentPrefix) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Get the service name for this formatter.void
setServiceName
(String serviceName) Deprecated, for removal: This API element is subject to removal in a future version.Set the service name (usually the VESPA config-id) of this formatter.static String
Deprecated, for removal: This API element is subject to removal in a future version.static String
Deprecated, for removal: This API element is subject to removal in a future version.Un-escapes previously escaped string.Methods inherited from class java.util.logging.Formatter
formatMessage, getHead, getTail
-
Field Details
-
serviceNameUnsetValue
Deprecated, for removal: This API element is subject to removal in a future version.- See Also:
-
-
Constructor Details
-
VespaFormatter
public VespaFormatter()Deprecated, for removal: This API element is subject to removal in a future version.Default constructor -
VespaFormatter
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
serviceName
- The VESPA service name.componentPrefix
- The application name.
-
-
Method Details
-
unEscape
Deprecated, for removal: This API element is subject to removal in a future version.Un-escapes previously escaped string. note: look at com.yahoo.config.StringNode.unescapeQuotedString()- Parameters:
s
- String that might need un-escaping- Returns:
- Returns un-escaped string
-
format
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
format
in classSimpleFormatter
-
setServiceName
Deprecated, for removal: This API element is subject to removal in a future version.Set the service name (usually the VESPA config-id) of this formatter.- Parameters:
serviceName
- The service name
-
getServiceName
Deprecated, for removal: This API element is subject to removal in a future version.Get the service name for this formatter.- Returns:
- Returns the service name.
-
toMessageString
Deprecated, for removal: This API element is subject to removal in a future version.
-