@@ -16,6 +16,29 @@ for test purposes, rather than setting a verbosity level. For example, you could
1616or "Show me all the method entries". Also, because SimpleLogger is tagging based on the event type, it has many
1717convenience functions to properly format and call based on that format.
1818
19+ ### Differences vs. System.out
20+ * ** Single point of control**
21+ SimpleLogger puts a single place where you can collect all log statements. From here it is trivial to log to a file or
22+ string or both. SimpleLogger also allows you to easily turn off types of logging allowing you to control the
23+ signal-to-noise ratio.
24+ * ** Convenience functions for metadata**
25+ SimpleLogger adds formatting and class names making logs consistent and robust after changing method or class names.
26+ This helps with both the writing and the reading of the logs.
27+ * ** Time stamps**
28+ SimpleLogger automatically adds timestamps plus time differences to easily detected when a problem happened and where a performance bottleneck is
29+ ### Differences vs. Log4J
30+ * ** Don't need to hold on to logging objects**
31+ The common patter for Log4J is that every class has a field named ` LOG `
32+ This tends to clutter up your files. SimpleLogger does not do this, opting instead to make all of its calls static.
33+ * ** Finer control over turning off noise**
34+ Log4J will allow you to set a level of output. In practice, this usually means everything, or just warnings.
35+ SimpleLogger, instead, allows you to toggle individual event types.
36+ For example, the following would allow you to turn on only the queries and where they came from:
37+ snippet: simple_logger_toggles
38+ * ** Can be used concurrently with SimpleLogger**
39+ There is nothing that prevents using both simultaneously
40+ ### Logging method calls
41+
1942For example, here's how you would log entry and exit from a method:
2043<!-- snippet: simple_logger_use_markers -->
2144<a id =' snippet-simple_logger_use_markers ' ></a >
@@ -62,6 +85,7 @@ Will produce the following logs:
6285
6386## HowTos
6487* [ How to capture logs for testing] ( ../how_to/CaptureLogs.md#top )
88+ * [ How to do performance profiling] ( ../how_to/PerformanceProfilingWithSimpleLogger.md#top )
6589
6690## SimpleLogger.logToNothing()
6791
0 commit comments