func (Record *Log) Size() int {
    JSONRecord, err := json.Marshal(Record)
    if err != nil {
        return -1
    }
    return len(string(JSONRecord))
}
// Size calculate log record length in bytes
Size calculate log record length in bytes
// Size calculate log record length in bytes
func (Record *Log) Size() int {
    JSONRecord, err := json.Marshal(Record)
    if err != nil {
        return -1
    }
    return len(string(JSONRecord))
}
func ( Record * Log ) Size ( ) int { JSONRecord , err := json . Marshal ( Record ) if err != nil { return - 1 } return len ( string ( JSONRecord ) ) }
Size calculate log record length in bytes
Size calculate log record length in bytes