diff --git a/models/MiniLogBox.cfc b/models/MiniLogBox.cfc index 7544f6a..b3a3fb8 100644 --- a/models/MiniLogBox.cfc +++ b/models/MiniLogBox.cfc @@ -24,6 +24,13 @@ component { } } + function warn( required string msg, data ){ + arrayAppend( variables.logs, "Warn: " & arguments.msg ); + if ( structKeyExists( arguments, "data" ) ) { + arrayAppend( variables.logs, arguments.data ); + } + } + array function getLogs(){ return variables.logs; }