public class PetBlockFilter extends Object implements org.apache.logging.log4j.core.Filter, AutoCloseable, org.apache.logging.log4j.core.LifeCycle
Do not remove this header!
Version 1.0
MIT License
Copyright (c) 2017
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this resource, relinquishing any underlying resources.
|
static PetBlockFilter |
create()
Creates a new logger
|
org.apache.logging.log4j.core.Filter.Result |
filter(org.apache.logging.log4j.core.LogEvent event)
Result filtering as PetBlocks manages these error messages after it gets loaded.
|
org.apache.logging.log4j.core.Filter.Result |
filter(org.apache.logging.log4j.core.Logger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
org.apache.logging.log4j.message.Message message,
Throwable throwable)
Ignore
|
org.apache.logging.log4j.core.Filter.Result |
filter(org.apache.logging.log4j.core.Logger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
Object o,
Throwable throwable)
Ignore
|
org.apache.logging.log4j.core.Filter.Result |
filter(org.apache.logging.log4j.core.Logger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
String s,
Object... objects)
Ignore
|
org.apache.logging.log4j.core.Filter.Result |
getOnMatch()
Ignore
|
org.apache.logging.log4j.core.Filter.Result |
getOnMismatch()
Ignore
|
boolean |
isStarted()
Is started LifeCycler
|
void |
start()
LifeCycle start
|
void |
stop()
LifeCycle stop
|
public org.apache.logging.log4j.core.Filter.Result getOnMismatch()
getOnMismatch in interface org.apache.logging.log4j.core.Filterpublic org.apache.logging.log4j.core.Filter.Result getOnMatch()
getOnMatch in interface org.apache.logging.log4j.core.Filterpublic org.apache.logging.log4j.core.Filter.Result filter(org.apache.logging.log4j.core.Logger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
String s,
Object... objects)
filter in interface org.apache.logging.log4j.core.Filterpublic org.apache.logging.log4j.core.Filter.Result filter(org.apache.logging.log4j.core.Logger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
Object o,
Throwable throwable)
filter in interface org.apache.logging.log4j.core.Filterpublic org.apache.logging.log4j.core.Filter.Result filter(org.apache.logging.log4j.core.Logger logger,
org.apache.logging.log4j.Level level,
org.apache.logging.log4j.Marker marker,
org.apache.logging.log4j.message.Message message,
Throwable throwable)
filter in interface org.apache.logging.log4j.core.Filterpublic org.apache.logging.log4j.core.Filter.Result filter(org.apache.logging.log4j.core.LogEvent event)
filter in interface org.apache.logging.log4j.core.Filterpublic void start()
start in interface org.apache.logging.log4j.core.LifeCyclepublic void stop()
stop in interface org.apache.logging.log4j.core.LifeCyclepublic boolean isStarted()
isStarted in interface org.apache.logging.log4j.core.LifeCyclepublic static PetBlockFilter create()
public void close()
throws Exception
try-with-resources statement.
However, implementers of this interface are strongly encouraged
to make their close methods idempotent.close in interface AutoCloseableException - if this resource cannot be closedCopyright © 2017. All rights reserved.