klyn.logging.LogHandlerConfiguration.string
method
public string(name as String, defaultValue as String = "") as String:
Description

Reads a string option.

Parameters
ParameterDescription
nameOption name.
defaultValueValue used when absent.
Returns

String value.

Throws
  • LogConfigurationException when the value is not a string.
Example

path = config.string("path", "application.log")