LayoutPattern
- LoggerLayout
LayoutPattern extends LoggerLayout
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Constant summary
Property summary
Modifier and Type | Property |
---|---|
protected | pattern |
static protected | defaultConverterMap |
protected | converterMap |
Methods summary
Modifier and Type | Method |
---|---|
public static | getDefaultConverterMap ( ) |
public | __construct ( ) |
public | setConversionPattern ( array conversionPattern ) |
public | activateOptions ( ) |
public string | format ( LoggingEvent event ) |
Constants in detail
-
DEFAULT_CONVERSION_PATTERN
const DEFAULT_CONVERSION_PATTERN
-
TTCC_CONVERSION_PATTERN
const TTCC_CONVERSION_PATTERN
Properties in detail
-
pattern
protected pattern
-
defaultConverterMap
protected static defaultConverterMap
-
converterMap
protected converterMap
Methods in detail
-
getDefaultConverterMap
public static getDefaultConverterMap ( ) -
__construct
public __construct ( ) -
setConversionPattern
public setConversionPattern ( array conversionPattern )Sets the conversionPattern option. This is the string which controls formatting and consists of a mix of literal content and conversion specifiers.param
array conversionPattern -
activateOptions
public activateOptions ( )Processes the conversion pattern and creates a corresponding chain of pattern converters which will be used to format logging events. -
format
Produces a formatted string as specified by the conversion pattern.