Sirs:
I certainly must have overlooked something in the User's Manual and the
javadocs looking for the answer to two basic questions. Please forgive me, if
the answers are stated in an obvious place.
First Question - How do I tell slf4j to write log messages from my program to
the "C:\Application-Log-Files\App1-Log.txt" file?
Second Question - I see the methods like isDebugEnabled(), but I do not see
something like setDebugEnabled(true). How do I tell slf4j to log debug-level
messages?
Thank you,
Charles Thomas
My program:
package com.argo.logtest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class BasicLogging
{
public static void main(String[] args)
{
Logger logger = LoggerFactory.getLogger("com.argo.logTest");
logger.debug("Msg Num {} was {}", 1, "A debug message.");
logger.info("Msg Num {} was {}", 2, "An info message.");
logger.error("Msg Num {} was {}", 3, "An error message.");
logger.warn("Msg Num {} was {}", 4, "A warning message.");
}
}
--------------------------------------------------- Confidentiality Notice:
This electronic mail transmission is confidential, may be privileged and should
be read or retained only by the intended recipient. If you have received this
transmission in error, please immediately notify the sender and delete it from
your system.
_______________________________________________
slf4j-user mailing list
[email protected]
http://mailman.qos.ch/mailman/listinfo/slf4j-user