All Projects → chinchang → Screenlog.js

chinchang / Screenlog.js

Licence: mit
Bring console.log on the screen

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Screenlog.js

Daiquiri
Python library to easily setup basic logging functionality
Stars: ✭ 308 (-47.88%)
Mutual labels:  logging, logging-library
Exceptionless.net
Exceptionless clients for the .NET platform
Stars: ✭ 362 (-38.75%)
Mutual labels:  logging, logging-library
Tslog
📝 tslog - Expressive TypeScript Logger for Node.js.
Stars: ✭ 321 (-45.69%)
Mutual labels:  logging, logging-library
Easyloggingpp
Single header C++ logging library. It is extremely powerful, extendable, light-weight, fast performing, thread and type safe and consists of many built-in features. It provides ability to write logs in your own customized format. It also provide support for logging your classes, third-party libraries, STL and third-party containers etc.
Stars: ✭ 3,032 (+413.03%)
Mutual labels:  logging, logging-library
Nlog
NLog - Advanced and Structured Logging for Various .NET Platforms
Stars: ✭ 5,296 (+796.11%)
Mutual labels:  logging, logging-library
Log4qt
Log4Qt - Logging for the Qt cross-platform application framework
Stars: ✭ 292 (-50.59%)
Mutual labels:  logging, logging-library
Reckless
Reckless logging. Low-latency, high-throughput, asynchronous logging library for C++.
Stars: ✭ 358 (-39.42%)
Mutual labels:  logging, logging-library
Cscore
cscore is a minimal-footprint library providing commonly used helpers & patterns for your C# projects. It can be used in both pure C# and Unity projects.
Stars: ✭ 115 (-80.54%)
Mutual labels:  logging, logging-library
Quill
Asynchronous Low Latency C++ Logging Library
Stars: ✭ 422 (-28.6%)
Mutual labels:  logging, logging-library
Xcglogger
A debug log framework for use in Swift projects. Allows you to log details to the console (and optionally a file), just like you would have with NSLog() or print(), but with additional information, such as the date, function name, filename and line number.
Stars: ✭ 3,710 (+527.75%)
Mutual labels:  logging, logging-library
Timber Elixir
🌲 Great Elixir logging made easy
Stars: ✭ 226 (-61.76%)
Mutual labels:  logging, logging-library
Fern
Simple, efficient logging for Rust
Stars: ✭ 524 (-11.34%)
Mutual labels:  logging, logging-library
Logging
Microsoft Extension Logging implementation for Blazor
Stars: ✭ 165 (-72.08%)
Mutual labels:  logging, logging-library
Scribe
The fastest logging library in the world. Built from scratch in Scala and programmatically configurable.
Stars: ✭ 304 (-48.56%)
Mutual labels:  logging, logging-library
Json Logging Python
Python logging library to emit JSON log that can be easily indexed and searchable by logging infrastructure such as ELK, EFK, AWS Cloudwatch, GCP Stackdriver
Stars: ✭ 143 (-75.8%)
Mutual labels:  logging, logging-library
Electron Timber
Pretty logger for Electron apps
Stars: ✭ 337 (-42.98%)
Mutual labels:  logging, logging-library
Tracing
Application level tracing for Rust.
Stars: ✭ 1,294 (+118.95%)
Mutual labels:  logging, logging-library
Nanolog
Nanolog is an extremely performant nanosecond scale logging system for C++ that exposes a simple printf-like API.
Stars: ✭ 1,710 (+189.34%)
Mutual labels:  logging, logging-library
Cocoadebug
iOS Debugging Tool 🚀
Stars: ✭ 3,769 (+537.73%)
Mutual labels:  logging, logging-library
Izumi
Productivity-oriented collection of lightweight fancy stuff for Scala toolchain
Stars: ✭ 423 (-28.43%)
Mutual labels:  logging, logging-library

screenlog.js npm version

Bring console.log, on the screen


Ever faced a situation where you said "Why doesn't this bug show up when developer console is open!!"? And since the bug doesn't show when you have console open, you cannot do debug logging using console.log.

Enter screenlog.js. screenlog.js brings the developer console right on your screen so that you can do logging without having the developer console open always.

Example

Screenshot

Usage

Do npm install screenlog or bower install screenlog or download the project.

Drop dist/screenlog.min.js into your web application and initialize it with:

screenLog.init();

And you are done! By default, every next console.log (or info, warn and error) in your app now starts logging on the screen as well as the console. Or you can use screenLog.log() instead to just log on the screen.

Public API

screenLog.init([options])

Initializes the screen logger. It creates a customizable panel on the screen.

  • options - A map of additional options.
  • logColor - Text color. Default is lightgreen.
  • fontSize - Font size of logs. Default is 1em(Your browser's default).
  • bgColor - Background color of the log panel. Default is black.
  • releaseConsole - By default console.log is overridden to log on screen. You can avoid this behaviour by setting releaseConsole to true and instead use screenLog.log() API. Default is false.

screenLog.[log, warn, error, info](obj1 [, obj2, ..., objN])

Logs a message on the screen. Eg. screenLog.info('Info here').

  • obj1 ... objN - A list of JavaScript objects or strings to output. Just like console.log.

screenLog.clear()

Clears messages on the screen.

screenLog.destroy()

Removes the logger from the UI and reverts to original console functionality.

Browser Support

screenlog.js works best on latest versions of Google Chrome, Firefox and Safari.

Contributing

Interested in contributing features and fixes?

Read more on contributing.

Changelog

See the Changelog

License

Copyright (c) 2015-2017 Kushagra Gour, http://kushagragour.in Licensed under the MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].