The Wayback Machine - https://web.archive.org/web/20220420231317/https://github.com/topics/on-device-ai
Skip to content
#

on-device-ai

Here are 13 public repositories matching this topic...

ONE
wateret
wateret commented Jul 30, 2020

We are using a very simple way to log. We have this logging context class, and it just prints everything if logging is enabled and that's it. What about enhancing this?

Any opinions are welcome.

For example, a tag is given to each log line and we can only log things with the specified tag or everything ot

good first issue help wanted type/discussion
mytag
cryptoboid
cryptoboid commented Mar 20, 2021

For now, it could be a simple function like:

export function log(title, data = null){
    const today = new Date();
    const hours = ("00" + today.getHours()).slice(-2);
    const minutes = ("00" + today.getMinutes()).slice(-2);
    const seconds = ("00" + today.getSeconds()).slice(-2);
    const time = `${hours}:${minutes}:${seconds}`;
    const timestamp = `[${time}] ${title}`
  
good first issue technical-debt

Improve this page

Add a description, image, and links to the on-device-ai topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the on-device-ai topic, visit your repo's landing page and select "manage topics."

Learn more