LayoutTTCC
- LoggerLayout
LayoutTTCC 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.
Property summary
Modifier and Type | Property |
---|---|
protected | threadPrinting |
protected | categoryPrefixing |
protected | contextPrinting |
protected | microSecondsPrinting |
protected string | dateFormat |
Methods summary
Modifier and Type | Method |
---|---|
public | __construct ( unknown dateFormat = '' ) |
public | setThreadPrinting ( unknown threadPrinting ) |
public boolean | getThreadPrinting ( ) |
public | setCategoryPrefixing ( unknown categoryPrefixing ) |
public boolean | getCategoryPrefixing ( ) |
public | setContextPrinting ( unknown contextPrinting ) |
public boolean | getContextPrinting ( ) |
public | setMicroSecondsPrinting ( unknown microSecondsPrinting ) |
public boolean | getMicroSecondsPrinting ( ) |
public | setDateFormat ( unknown dateFormat ) |
public string | getDateFormat ( ) |
public string | format ( LoggingEvent event ) |
public | ignoresThrowable ( ) |
Properties in detail
-
threadPrinting
protected threadPrinting
-
categoryPrefixing
protected categoryPrefixing
-
contextPrinting
protected contextPrinting
-
microSecondsPrinting
protected microSecondsPrinting
-
dateFormat
protected string dateFormat
var
stringdate format. See PHP_MANUAL#strftime for details
Methods in detail
-
__construct
public __construct ( unknown dateFormat = '' )Constructorparam
string date date formatsee
n2n\log4php\layout\dateFormat -
setThreadPrinting
public setThreadPrinting ( unknown threadPrinting )The ThreadPrinting option specifies whether the name of the current thread is part of log output or not. This is true by default. -
getThreadPrinting
boolean public getThreadPrinting ( )return
boolean -
setCategoryPrefixing
public setCategoryPrefixing ( unknown categoryPrefixing )The CategoryPrefixing option specifies whether Category name is part of log output or not. This is true by default. -
getCategoryPrefixing
boolean public getCategoryPrefixing ( )return
boolean -
setContextPrinting
public setContextPrinting ( unknown contextPrinting )The ContextPrinting option specifies log output will include the nested context information belonging to the current thread. This is true by default. -
getContextPrinting
boolean public getContextPrinting ( )return
boolean -
setMicroSecondsPrinting
public setMicroSecondsPrinting ( unknown microSecondsPrinting )The MicroSecondsPrinting option specifies if microseconds infos should be printed at the end of timestamp. This is true by default. -
getMicroSecondsPrinting
boolean public getMicroSecondsPrinting ( )return
boolean -
setDateFormat
public setDateFormat ( unknown dateFormat ) -
getDateFormat
string public getDateFormat ( )return
string -
format
In addition to the level of the statement and message, the returned string includes time, thread, category. <p>Time, thread, category are printed depending on options. -
ignoresThrowable
public ignoresThrowable ( )