-
Notifications
You must be signed in to change notification settings - Fork 0
Handler
greggwon edited this page Aug 28, 2013
·
2 revisions
A NetLog.Logging.Handler
subclass is responsible for handling NetLog.Logging.LogRecord
data and doing the appropriate "logging" of the records data. There are several Handler
implementations in this package.
- The ConsoleHandler writes to the
Console
objects output stream. - The TcpSocketHandler provides a server socket that you can telnet into to watch logging. The NetLogMonitor application provides a convenient way to watch a logging stream when a tailable log file is not available.
- The FileHandler uses a generation based filename rotation scheme to allow a group of log files to be used for holding a larger collection of logging, but with a fixed limit of size of the file, and how many files can exist.
- The RotatingFileHandler uses a filename pattern based on a date, to create a new log file each time that result pattern changes. So, you can create a new file every day, hour, month, minute etc.
The Handler
class uses a Formatter to format it's 'written' data for logging.