console-logger | A simple Browser Console logger for PHP Scripts
kandi X-RAY | console-logger Summary
kandi X-RAY | console-logger Summary
A simple Browser Console logger for PHP Scripts.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Log a message .
- Format a log message .
- Adds a group
- Clear the log
- End group end
console-logger Key Features
console-logger Examples and Code Snippets
Community Discussions
Trending Discussions on console-logger
QUESTION
I have a ASP.NET Core 2.0 application with built-in console logging enabled. Here is the WebHost creation:
...ANSWER
Answered 2018-Mar-06 at 11:37Using a third-party solution is the right answer.
As explained in the same github discussion you linked about the built-in logging:
This really is a logging abstraction, the default sinks are very extremely basic and usually farm out to other systems to get more features.
and
There are so many amazing 3rd party logging systems with richer features than what we will ever provide OOTB. I'd recommend you use those in your production applications.
I would strongly recommend (also in the github issue) that you consider a well-maintained structured-logging package like Serilog.
I'm sure the custom code you linked is probably fine, but Serilog has many contributors and you can be sure it'll be up-to-date well into the future. The main page will link you to extensions specific to ASP.NET Core logging. (I don't have any vested interest in the product, but I do use it, it's quite easy to set up and use, and is very flexible.)
Structured logging lets you add arbitrary JSON data to your logs, which is a huge benefit during troubleshooting over simple "write a string of text" logging like we used to do.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install console-logger
PHP requires the Visual C runtime (CRT). The Microsoft Visual C++ Redistributable for Visual Studio 2019 is suitable for all these PHP versions, see visualstudio.microsoft.com. You MUST download the x86 CRT for PHP x86 builds and the x64 CRT for PHP x64 builds. The CRT installer supports the /quiet and /norestart command-line switches, so you can also script it.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page