Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this questionWhat would be a the best viewer that works well with NLog when I have the following requirements:
- I need to view logs offline (files) and online (live)
- for offline I need to be able to select and view multiple files that are then all displayed in one view where all entries are serialized chronologically
- for online I need to be able to view multiple log sources (i.e. applications) at once
- for online I need to get the data through for a local network (TCP, UDP, Chainsaw maybe?) and through the internet (http, Webservice?)
- the viewer should have "good" filtering and view configuration support (e.g. regexp/grep based highlighting and fitering, loglevel filtering, highlighting, list or tree of all available loggers)
- the viewer should be capable of processing large amount of data
- the viewer should preferably be xcopy deployable (standalone binary that can be .NET based but not java)
- the license should preferably allow me to deploy without additional fees or at least these additional fees should be "reasonable" (all free of course would be the best)
As a last resort, if there isn't one that can do both offline and online viewing equally well, it would also be feasible to use separate viewers for this with s开发者_StackOverfloweparate configurations.
Correct me if I am wrong, but since NLog seems to have a lot of ways to spit out log4j/log4net comatible logs, I guess a log4j/log4net viewer might do the trick as well.
The latest developer snapshot of Chainsaw can do all of that. Available here:
http://people.apache.org/~sdeboy
- I need to view logs offline (files) and online (live)
- Use a LogFilePatternReceiver (VFSLogFilePatternReceiver, which can tail files, even across application restarts, and over ssh/sftp if you need it using Commons VFS support)
- for offline I need to be able to select and view multiple files that are then all displayed in one view where all entries are serialized chronologically
- Define a LogFilePatternReceiver for each log file and use the 'create tab from expression' view menu option - first clear and pause the chainsaw-log tab. Example expression: level >= TRACE
- for online I need to be able to view multiple log sources (i.e. applications) at once
- Define multiple receivers (network, logfilepatternerceivers, etc - see the example configuration file available from the Welcome tab)
- for online I need to get the data through for a local network (TCP, UDP, Chainsaw maybe?) and through the internet (http, Webservice?)
- Chainsaw supports a number of network receivers, and with the latest version of log4j and Chainsaw, the receivers all support zeroconf for auto-configuration and network discovery
- the viewer should have "good" filtering and view configuration support
- Chainsaw has very customizable view support (all settings are remembered on a per-tab basis), very flexible filtering (including regexp support) - see the tutorial
- the viewer should be capable of processing large amount of data
- Chainsaw doesn't use a cache, it pulls events in to memory, so allocate your VM more memory to handle really big files
- the viewer should preferably be xcopy deployable
- The link has tarball and DMGs you can use
- the license should preferably allow me to deploy without additional fees or at least these additional fees should be "reasonable" (all free of course would be the best)
- ASL 2.0
Also, you can annotate events by editing the 'marker' field, save the events off and send to someone else, define color rules and see the matching rows in the entire file at a glance (in the area to the right of the table). Lots of other features, wander through the menus and right-click in the table or tree, or check out the release notes (available from the help menu).
I've used BareTail.
http://www.baremetalsoft.com/baretail/
Very nice, no installer, already used with a 3GB log file, 25 bucks.
Try Sentinel - Log Viewer
or
Log2Console
I think both of them support online and offline
精彩评论