From 625232f072d61739c765a8d9c794c301e86858dd Mon Sep 17 00:00:00 2001 From: Stefan Profanter Date: Mon, 22 Jun 2015 16:01:44 +0200 Subject: [PATCH] Changed message type to any --- loglevel/loglevel-tests.ts | 1 + loglevel/loglevel.d.ts | 24 ++++++++++++++---------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/loglevel/loglevel-tests.ts b/loglevel/loglevel-tests.ts index 8284134f3..2c4f89733 100644 --- a/loglevel/loglevel-tests.ts +++ b/loglevel/loglevel-tests.ts @@ -5,6 +5,7 @@ log.debug("Debug message"); log.info("Info message"); log.warn("Warn message"); log.error("Error message"); +log.debug(["Hello", "world", 42]); log.setLevel(0); log.setLevel(0, false); diff --git a/loglevel/loglevel.d.ts b/loglevel/loglevel.d.ts index 6644d026c..01b80b722 100644 --- a/loglevel/loglevel.d.ts +++ b/loglevel/loglevel.d.ts @@ -21,33 +21,37 @@ declare module loglevel { * Output trace message to console. * This will also include a full stack trace * - * @param msg the message to print + * @param msg any data to log to the console */ - export function trace(msg:string):void; + export function trace(msg:any):void; /** * Output debug message to console including appropriate icons - * @param msg the message to print + * + * @param msg any data to log to the console */ - export function debug(msg:string):void; + export function debug(msg:any):void; /** * Output info message to console including appropriate icons - * @param msg the message to print + * + * @param msg any data to log to the console */ - export function info(msg:string):void; + export function info(msg:any):void; /** * Output warn message to console including appropriate icons - * @param msg the message to print + * + * @param msg any data to log to the console */ - export function warn(msg:string):void; + export function warn(msg:any):void; /** * Output error message to console including appropriate icons - * @param msg the message to print + * + * @param msg any data to log to the console */ - export function error(msg:string):void; + export function error(msg:any):void; /**