An open API service indexing awesome lists of open source software.

https://github.com/wiright/plog

Log in your code with plog!
https://github.com/wiright/plog

c

Last synced: 2 months ago
JSON representation

Log in your code with plog!

Awesome Lists containing this project

README

          

# plog

[![Join the chat at https://gitter.im/plog_chat/Lobby](https://badges.gitter.im/plog_chat/Lobby.svg)](https://gitter.im/plog_chat/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

Log in your code with plog!

## How to use

Just include a lib

```c
#include "plog.h"
```

And in your code write following:

```c
plogInit(); // Initialize component

infoLog("Log Worked!"); // Say something in log!

plogDestroy(); // Destroy component
```
Thats is it!

#### Log types

- **infoLog** : Some info
- **assertLog** : Some info
- **warningLog** : Some info
- **debugLog** : Some info

#### Features

You can change log format!
But remember, you can't change count parameters

By default time format is "_DAY_._MONTH_._YEAR_ *HOURS*:*MINUTES*:*SECONDS*"
By default log format is "[_[timeFormat]_] [**LOG_TYPE**] {_fileName_} {_functionName_} {_line_}: **log message**"