MariaDB [(none)]> show global variables like '%slow_query_log%';
+---------------------+---------------+
| Variable_name | Value |
+---------------------+---------------+
| slow_query_log | OFF |
| slow_query_log_file | myPC-slow.log |
+---------------------+---------------+
2 rows in set (0.00 sec)

MariaDB [(none)]> SET GLOBAL slow_query_log = ON;
Query OK, 0 rows affected (0.02 sec)

MariaDB [(none)]> show global variables like '%slow_query_log%';
+---------------------+---------------+
| Variable_name | Value |
+---------------------+---------------+
| slow_query_log | ON |
| slow_query_log_file | myPC-slow.log |
+---------------------+---------------+
2 rows in set (0.00 sec)

MariaDB [(none)]> set global long_query_time = 2;
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> show global variables like '%general%';
+------------------+-------------+
| Variable_name | Value |
+------------------+-------------+
| general_log | OFF |
| general_log_file | myPC-PC.log |
+------------------+-------------+
2 rows in set (0.00 sec)

MariaDB [(none)]> show global variables like '%log_output%';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| log_output | FILE |
+---------------+-------+
1 row in set (0.00 sec)

MariaDB [(none)]> SET GLOBAL log_output= 'TABLE';
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> show global variables like '%log_output%';
+---------------+-------+
| Variable_name | Value |
+---------------+-------+
| log_output | TABLE |
+---------------+-------+
1 row in set (0.00 sec)

MariaDB [(none)]> SET GLOBAL general_log = ON;
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> show global variables like '%general%';
+------------------+----------+
| Variable_name | Value |
+------------------+----------+
| general_log | ON |
| general_log_file | myPC.log |
+------------------+----------+
2 rows in set (0.00 sec)

MariaDB [(none)]> SET GLOBAL general_log = OFF;
Query OK, 0 rows affected (0.02 sec)

MariaDB [(none)]> show global variables like '%general%';
+------------------+----------+
| Variable_name | Value |
+------------------+----------+
| general_log | OFF |
| general_log_file | myPC.log |
+------------------+----------+
2 rows in set (0.00 sec)