Implemented a 'flag' method for chaining
'log' now ignores any flags passed through function, only reads flag from chained 'flag' call before.
If a chained log call with with flag is used, flag is cleared once it has been registered for the particular log.
Merge branch 'develop' into feature