{"repo":"davisb10/serilogger","free":true,"listed":false,"github":"https://github.com/davisb10/serilogger","clone":"git clone https://github.com/davisb10/serilogger.git","description":"A structured logging framework for JavaScript, inspired by Serilog.","language":"TypeScript","stars":26,"topics":["logger","logging","serilog","structured-logging"],"license":"Apache-2.0","category":"analytics","readme_excerpt":"serilogger A structured logging framework for JavaScript, inspired by Serilog. Note: Originally forked from the structured-log project Basic Example The above code will print the following to the console: Installation serilogger is distributed through npm. Run the following: Configuration Configuring serilogger is a straightforward process, going through three steps. First, we initialize a new logging pipeline configuration by instantiating a LoggerConfiguration : The second step is the main step. Configuration of different filters and targets is done by chaining methods together in a fluent syntax. Events flow through the pipeline from top to bottom, so new filters and enrichers can be inserted between the different sinks to build a highly controllable pipeline. The chain is closed by calling create() , which instantiates a new logger instance based on the pipeline configuration. Log Levels There are 6 log levels available by default, in addition to a setting to disable logging completely. In decreasing order of severity (with descriptions borrowed from Seq): Label Description Bitfield --- --- --- off When the minimum level is set to this, nothing will be logged. 0 fatal Critical errors causing complete failure of the application. 1 error Indicates failures within the application or connected systems. 3 warning Indicators of possible issues or service/functionality degradatio. 7 information Events of interest or that have relevance to outside observers. 15 debug Internal con","default_branch":null,"files":null,"tree":[],"storefront":"/r/davisb10","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/davisb10/serilogger/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}