log-rs 0.1.1

A small logging library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
extern crate chrono;
use chrono::Local;
use std::string::ToString;

/// Get the current timestamp formated to apply to the ISO 8601.
/// # Return Value
///
/// A String containing the current timestamp.
pub fn get_timestamp() -> String {
    let now = Local::now();
    return now.format("%Y-%m-%dT%H:%M:%S%z").to_string();
}