/**
 * 24.05.2017
 * TCP Chat using NodeJS
 * https://github.com/PatrikValkovic/TCPChat
 * Created by patri
 */
'use strict'

const net = require('net')
const log = require('./logger')
const manager = require('./groupManager')
const process = require('./commands')

/**
 * Parse user commands
 * @type {Parser}
 */
module.exports = class Parser {
    //TODO refactor

    /**
     * Constructor
     */
    constructor() {
        this.manager = manager
    }

    /**
     * Parse messages from user
     * @param {Client} client Client that send message
     * @param {string} content
     */
    parse(client, content) {

        if (!process(client, content)) {
            //TODO failure
        }
    }
}
@@ -630,67 +630,253 @@
     
-if (!process(client, content)) %7B%0A            //TODO failure
+log.info(%60Obtain: $%7Bcontent%7D from user $%7Bclient.id%7D%60)%0A%0A        if (!process(client, content)) %7B%0A            client.socket.write('Invalid syntax, try /help or more info')%0A            log.warning(%60Cannot parse %22$%7Bcontent%7D%22 from user $%7Bclient.id%7D%60)
 %0A   

Add log to parser