public class LogConfig extends Object implements LogNode
| Modifier and Type | Field and Description |
|---|---|
static xyz.cofe.collection.Predicate<LogNode> |
isBaseLogFileWriter |
static xyz.cofe.collection.Predicate<LogNode> |
isLogWriter |
static xyz.cofe.collection.Predicate<LogNode> |
isRunningLogWriter |
Lock |
lock |
static xyz.cofe.collection.Convertor<LogNode,BaseLogFileWriter> |
toBaseLogFileWriter |
static xyz.cofe.collection.Convertor<LogNode,LogWriter> |
toLogWriter |
| Modifier and Type | Method and Description |
|---|---|
void |
applyLoggerLevel(String loggerName,
String logLevel) |
void |
applyLoggersLevel() |
void |
applyLoggersLevel(LogConfig conf) |
void |
applyLoggersLevel(Map<String,String> logslevel) |
void |
assign(LogConfig src) |
void |
assignContext(Object context) |
void |
assignLogName(RotateLogNaming.LogName logName) |
LogConfig |
clone() |
<Target> Iterable<Target> |
convert(Iterable<LogNode> src,
xyz.cofe.collection.Convertor<LogNode,Target> conv) |
Iterable<LogNode> |
filter(Iterable<LogNode> src,
xyz.cofe.collection.Predicate<LogNode> f) |
Iterable<LogNode> |
filterAnd(Iterable<LogNode> src,
xyz.cofe.collection.Predicate<LogNode> f1,
xyz.cofe.collection.Predicate<LogNode> f2) |
static LogNode |
first(Iterable<LogNode> src) |
Iterable<BaseLogFileWriter> |
getBaseLogFileWriter() |
LogNode |
getByName(String name) |
LogNode[] |
getChildren() |
xyz.cofe.collection.Func2<Boolean,LogNode,LogNode> |
getCompareEquals() |
int |
getIndex() |
static LogConfig |
getLogConfig(LogNode node) |
Map<String,String> |
getLoggersLevel() |
Iterable<LogWriter> |
getLogWriters() |
LogNode |
getNextSibling() |
LogNode |
getParent() |
LogNode |
getPreviousSibling() |
Iterable<LogWriter> |
getRootLogWriters() |
LogNode |
getRootNode() |
Iterable<LogWriter> |
getRunningLogWriters() |
Iterable<LogNode> |
getsByName(String name) |
LogNode |
getSibling(int i) |
xyz.cofe.collection.Predicate<LogNode> |
isChildOf(LogNode parentNode) |
xyz.cofe.collection.Predicate<LogNode> |
isChildOf(LogNode parentNode,
xyz.cofe.collection.Func2<Boolean,LogNode,LogNode> compareEquals) |
boolean |
isRunning() |
boolean |
isStartRootLogWriters() |
static xyz.cofe.collection.Predicate<LogNode> |
nameEquals(String nameMatcher) |
static xyz.cofe.collection.Predicate<LogNode> |
nameMatch(xyz.cofe.collection.Predicate<String> nameMatcher) |
<Target> Iterable<Target> |
notNull(Iterable<Target> src) |
void |
setLoggerLevel(String logger,
Level level) |
void |
setLoggerLevel(String logger,
String level) |
void |
setLoggersLevel(Map<String,String> loggersLevel) |
void |
setParent(LogNode node) |
void |
setRootNode(LogNode rootNode) |
void |
setStartRootLogWriters(boolean startRootLogWriters) |
void |
start() |
void |
stop() |
Iterable<xyz.cofe.collection.iterators.TreeWalk<LogNode>> |
tree() |
void |
visit(xyz.cofe.collection.Func1<Boolean,Stack<LogNode>> visiterEnter,
xyz.cofe.collection.Func1<Object,Stack<LogNode>> visiterExit) |
void |
visit(xyz.cofe.common.Reciver<Stack<LogNode>> visiter) |
void |
visit(xyz.cofe.common.Reciver<Stack<LogNode>> visiterEnter,
xyz.cofe.common.Reciver<Stack<LogNode>> visiterExit) |
Iterable<LogNode> |
walk() |
static Iterable<LogNode> |
walk(LogNode rootNode) |
public final Lock lock
public static final xyz.cofe.collection.Predicate<LogNode> isLogWriter
public static final xyz.cofe.collection.Predicate<LogNode> isBaseLogFileWriter
public static final xyz.cofe.collection.Convertor<LogNode,BaseLogFileWriter> toBaseLogFileWriter
public static final xyz.cofe.collection.Predicate<LogNode> isRunningLogWriter
public LogConfig()
public LogConfig(LogConfig src)
public void assign(LogConfig src)
public LogNode getRootNode()
public void setRootNode(LogNode rootNode)
public void assignContext(Object context)
public void assignLogName(RotateLogNaming.LogName logName)
public void applyLoggersLevel()
public void applyLoggersLevel(LogConfig conf)
public Iterable<LogNode> walk()
walk in interface xyz.cofe.collection.tree.TreeNode<LogNode>public Iterable<LogNode> filter(Iterable<LogNode> src, xyz.cofe.collection.Predicate<LogNode> f)
public Iterable<LogNode> filterAnd(Iterable<LogNode> src, xyz.cofe.collection.Predicate<LogNode> f1, xyz.cofe.collection.Predicate<LogNode> f2)
public <Target> Iterable<Target> convert(Iterable<LogNode> src, xyz.cofe.collection.Convertor<LogNode,Target> conv)
public xyz.cofe.collection.Predicate<LogNode> isChildOf(LogNode parentNode, xyz.cofe.collection.Func2<Boolean,LogNode,LogNode> compareEquals)
public boolean isStartRootLogWriters()
public void setStartRootLogWriters(boolean startRootLogWriters)
public void start()
public void stop()
public boolean isRunning()
public Iterable<BaseLogFileWriter> getBaseLogFileWriter()
public static xyz.cofe.collection.Predicate<LogNode> nameMatch(xyz.cofe.collection.Predicate<String> nameMatcher)
public LogNode getParent()
getParent in interface xyz.cofe.collection.tree.TreeNode<LogNode>public void setParent(LogNode node)
setParent in interface xyz.cofe.collection.tree.TreeNodeSetParent<LogNode>public LogNode[] getChildren()
getChildren in interface xyz.cofe.collection.tree.TreeNode<LogNode>public int getIndex()
getIndex in interface xyz.cofe.collection.tree.TreeNode<LogNode>public LogNode getSibling(int i)
getSibling in interface xyz.cofe.collection.tree.TreeNode<LogNode>public LogNode getNextSibling()
getNextSibling in interface xyz.cofe.collection.tree.TreeNode<LogNode>public LogNode getPreviousSibling()
getPreviousSibling in interface xyz.cofe.collection.tree.TreeNode<LogNode>public Iterable<xyz.cofe.collection.iterators.TreeWalk<LogNode>> tree()
tree in interface xyz.cofe.collection.tree.TreeNode<LogNode>public void visit(xyz.cofe.common.Reciver<Stack<LogNode>> visiter)
visit in interface xyz.cofe.collection.tree.TreeNode<LogNode>public void visit(xyz.cofe.collection.Func1<Boolean,Stack<LogNode>> visiterEnter, xyz.cofe.collection.Func1<Object,Stack<LogNode>> visiterExit)
visit in interface xyz.cofe.collection.tree.TreeNode<LogNode>Copyright © 2017. All rights reserved.